示例#1
0
 /// <summary>
 ///     Add errors to model state
 /// </summary>
 /// <param name="errors"></param>
 public void AddModelStateErrors(params string[] errors)
 {
     foreach (var error in errors)
     {
         ModelStateErrors.Add(error);
     }
 }
示例#2
0
 internal void AddModelStateErrors(IEnumerable <string> modelStateErrors)
 {
     foreach (var error in modelStateErrors)
     {
         ModelStateErrors.Add(error);
     }
 }
示例#3
0
 /// <summary>
 ///     Add a list of errors to model state
 /// </summary>
 /// <param name="error"></param>
 public void AddModelStateError(string error)
 {
     ModelStateErrors.Add(error);
 }