Skip to content

Instantly share code, notes, and snippets.

@luismts
Created October 15, 2018 03:34
Show Gist options
  • Save luismts/63c7d2ed32da0ef3a6a9862294a644c6 to your computer and use it in GitHub Desktop.
Save luismts/63c7d2ed32da0ef3a6a9862294a644c6 to your computer and use it in GitHub Desktop.
//Email validations
Email.Validations.Add(new IsNotNullOrEmptyRule<string>{ ValidationMessage = "A email is required." });
Email.Validations.Add(new EmailRule<string> { ValidationMessage = "Email is not valid." });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment