Closed gdlcf88 closed 4 years ago
Now the attribute is DisplayName:
DisplayName
public class CreateEditTodoViewModel { [DisplayName("TodoName")] public string Name { get; set; } }
To be more flexible, I think Display attribute is better:
Display
public class CreateEditTodoViewModel { [Display(Name = "TodoName")] public string Name { get; set; } }
Now the attribute is
DisplayName
:To be more flexible, I think
Display
attribute is better: