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