I have a model:
public class SomethingViewModel
{
[Required]
[Display(Name = "Customer")]
public string SomethingName { get; set; }
[Required]
[Display(Name = "Something id")]
public string SomethingId { get; set; }
}
I need to create a view for Html.EditorForModel
but I need field SomethingName only display(label). How to do this?
UPDATE: I need use attributes