我想在验证摘要中显示特定错误并消除一些错误,如下所示:`public class LogOnModel { [显示(姓名=“电子邮件”)] public string Email {get;组; }
[Required(ErrorMessage = "Username must be entered.")]
[Display(Name = "Kullanıcı Adı")]
public string Username { get; set; }
[Required(ErrorMessage = "Password must be entered.")]
[DataType(DataType.Password)]
[Display(Name = "Parola")]
public string Password { get; set; }
}
如何在ValidationSummary()中过滤特定错误?