using FluentValidation;
using AdsManagerService.API.Controllers;

namespace AdsManagerService.API.Application.Validations;

/// <summary>
/// EN: Validator for ApproveAdCommand.
/// VI: Validator cho ApproveAdCommand.
/// </summary>
public class ApproveAdCommandValidator : AbstractValidator<ApproveAdCommand>
{
    public ApproveAdCommandValidator()
    {
        RuleFor(x => x.AdId)
            .NotEmpty()
            .WithMessage("Ad ID is required / Ad ID là bắt buộc");
    }
}
