public static AjaxContinuation WithSubmission(this AjaxContinuation ajaxContinuation, Notification notification) { ajaxContinuation.Success = notification.IsValid(); ajaxContinuation.AddErrors(notification.ToValidationErrors()); return ajaxContinuation; }
internal static void Combine(this ValidationResult firstResult, ValidationResult secondResult) { firstResult.AddErrors(secondResult.ErrorList); }