public static AjaxContinuation AddErrors(this AjaxContinuation ajaxContinuation, ValidationError[] validationErrors)
 {
     if (validationErrors == null) return ajaxContinuation;
     validationErrors.Each(x => ajaxContinuation.AddError(x));
     return ajaxContinuation;
 }
예제 #2
0
 public void RegisterError(ValidationError error)
 {
     RegisterErrors(new ValidationError[] {error});
 }
 public static AjaxContinuation AddError(this AjaxContinuation ajaxContinuation, ValidationError validationError)
 {
     if (validationError == null) return ajaxContinuation;
     ajaxContinuation.AddError(new AjaxError{field = validationError.field, message = validationError.message});
     return ajaxContinuation;
 }