For Example, I have DTO like below, how on Form I will Display Lable for FormItem from value get from Display Name
public class DepartmentRequestDTO
{
[Display(Name = "Department Id")]
[Required(ErrorMessage = "Department Id" + ErrorConstant.RequiredMsg)]
public int DepartmentId { get; set; }
[Display(Name = "Department Name")]
//[Required(ErrorMessage = "Department Name" + ErrorConstant.RequiredMsg)]
[Required]
[StringLength(50, MinimumLength = 3)]
public string Name { get; set; }
[Display( Name = "Remarks")]
//[Required(ErrorMessage = "Remarks" + ErrorConstant.RequiredMsg)]
[StringLength(250, MinimumLength = 3)]
public string Remarks { get; set; }
}