Created
April 4, 2020 10:13
-
-
Save DavidRogersDev/adad90ad938d94d57db11e02d9cfc092 to your computer and use it in GitHub Desktop.
Gist for Medium Article - CreateUserValidator
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
public class CreateUserValidator: AbstractValidator<CreateUserDto> | |
{ | |
public CreateUserValidator() | |
{ | |
RuleFor(m => m.Password).NotEmpty(); | |
RuleFor(m => m.UserName).NotEmpty(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment