Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
using FluentValidation;
namespace DotNetGigs.ViewModels.Validations
public class RegistrationViewModelValidator : AbstractValidator<RegistrationViewModel>
public RegistrationViewModelValidator()
RuleFor(vm => vm.Email).NotEmpty().WithMessage("Email cannot be empty");
RuleFor(vm => vm.Password).NotEmpty().WithMessage("Password cannot be empty");
RuleFor(vm => vm.FirstName).NotEmpty().WithMessage("FirstName cannot be empty");
RuleFor(vm => vm.LastName).NotEmpty().WithMessage("LastName cannot be empty");
RuleFor(vm => vm.Location).NotEmpty().WithMessage("Location cannot be empty");