http-api/src/Application/Countries/Commands/DeleteCountry/DeleteCountryCommandValidator.cs
2025-04-29 23:51:19 +03:00

15 lines
431 B
C#

using FluentValidation;
using Microsoft.Extensions.Localization;
namespace cuqmbr.TravelGuide.Application.Countries.Commands.DeleteCountry;
public class DeleteCountryCommandValidator : AbstractValidator<DeleteCountryCommand>
{
public DeleteCountryCommandValidator(IStringLocalizer localizer)
{
RuleFor(v => v.Guid)
.NotEmpty()
.WithMessage(localizer["FluentValidation.NotEmpty"]);
}
}