Created
June 1, 2020 19:18
-
-
Save timdows/2ac234cb02f9b99d8176b4124f533822 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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