first commit
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Landmark.OLA.Models.Addresses.Validators
|
||||
{
|
||||
public class AddressValidator : AbstractValidator<Address>
|
||||
{
|
||||
public AddressValidator()
|
||||
{
|
||||
RuleFor(x => x.Address1).NotNull();
|
||||
RuleFor(x => x.City).NotNull();
|
||||
RuleFor(x => x.State).NotNull();
|
||||
RuleFor(x => x.PostalCode).NotNull();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user