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