Skip to content

Instantly share code, notes, and snippets.

@timdows
Created June 1, 2020 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timdows/2ac234cb02f9b99d8176b4124f533822 to your computer and use it in GitHub Desktop.
Save timdows/2ac234cb02f9b99d8176b4124f533822 to your computer and use it in GitHub Desktop.
var validator = new DeleteUserRequestValidator();
var result = validator.Validate(request);
if (!result.IsValid)
{
throw new MyCustomValidationException(result.ToString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment