/// <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); } }
internal void AddModelStateErrors(IEnumerable <string> modelStateErrors) { foreach (var error in modelStateErrors) { ModelStateErrors.Add(error); } }
/// <summary> /// Add a list of errors to model state /// </summary> /// <param name="error"></param> public void AddModelStateError(string error) { ModelStateErrors.Add(error); }