using FluentValidation;
using Hotline.Share.Dtos.CallCenter;

namespace Hotline.Validators.CallCenter
{
    public class AddBlacklistDtoValidator : AbstractValidator<AddBlacklistDto>
    {
        public AddBlacklistDtoValidator()
        {
            RuleFor(d => d.Phone).NotEmpty();
            RuleFor(d => d.Duration).NotEmpty();
        }
    }
}
