Skip to content

Instantly share code, notes, and snippets.

@scionwest
Created November 8, 2014 22:40
Show Gist options
  • Save scionwest/c3aba56115b0b20c9169 to your computer and use it in GitHub Desktop.
Save scionwest/c3aba56115b0b20c9169 to your computer and use it in GitHub Desktop.
Validation Example
[ValidateNumberIsGreaterThan(
ComparisonProperty = "Account.MinimumBalance",
FailureMessage = "You can not withdraw anymore, you must maintain a minimum balance.",
ValidationMessageType = typeof(ValidationWarningMessage),
ValidateIfMemberValueIsValid = "Account.IsOpen")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment