display name on model class .net core code example Example: displayname c# [DisplayName("foo")] public string MyProperty { get; set; }