Ejemplo n.º 1
0
 public static ValidatableBuilder <string> WithEmail(this ValidatableBuilder <string> validatable, string errorMessage, int order) =>
 validatable.WithValidator(new EmailValidator(errorMessage, order));
Ejemplo n.º 2
0
 public static ValidatableBuilder <string> WithRequired(this ValidatableBuilder <string> validatable, string errorMessage, int order = 0) =>
 validatable.WithValidator(new RequiredValidator(errorMessage, order));