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