Beispiel #1
0
 public static Dictionary <string, string[]> ToDictionary(this ModelStateDictionary modelStateDictionary)
 {
     return(modelStateDictionary.ToDictionary(
                kvp => kvp.Key,
                kvp => kvp.Value.Errors.Select(e => e.ErrorMessage).ToArray()
                ));
 }