public bool HasError(ActiveRecordValidationBase ar) { if (this.Controller.Context.RequestType == "GET") return false; return ar.ValidationErrorMessages.Length > 0; }
public string ErrorsFor(ActiveRecordValidationBase ar) { if (this.Controller.Context.RequestType == "GET") return null; return String.Join("<br>", ar.ValidationErrorMessages); }