Exemple #1
0
 public static Dictionary <string, string[]> GetGroupErrors(this System.Collections.Generic.IList <ValidationFailure> validationResult)
 {
     return(validationResult.ToList().GroupBy(x => x.PropertyName).ToDictionary(x => x.Key, x => x.Select(y => y.ErrorMessage).ToArray()));
 }