// EN: FluentValidation validator for MarkNoShowCommand.
// VI: FluentValidation validator cho MarkNoShowCommand.

using BookingService.API.Application.Commands;
using FluentValidation;

namespace BookingService.API.Application.Validations;

/// <summary>
/// EN: Validator for MarkNoShowCommand.
/// VI: Validator cho MarkNoShowCommand.
/// </summary>
public class MarkNoShowCommandValidator : AbstractValidator<MarkNoShowCommand>
{
    public MarkNoShowCommandValidator()
    {
        RuleFor(x => x.AppointmentId)
            .NotEmpty()
            .WithMessage("Appointment ID is required / ID cuộc hẹn là bắt buộc");
    }
}
