Ejemplo n.º 1
0
        public ErrorList Merge(ErrorList otherErrors)
        {
            this.AddRange(otherErrors);

            return(this);
        }
Ejemplo n.º 2
0
 public static void AddErrorMessages(this ModelStateDictionary modelStateDictionary, ErrorList errors)
 {
     foreach (var error in errors)
     {
         modelStateDictionary.AddErrorMessage(error);
     }
 }