autobus-api_old/AutobusApi.Application/Cities/Commands/DeleteCity/DeleteCityCommandValidator.cs

12 lines
265 B
C#

using FluentValidation;
namespace AutobusApi.Application.Cities.Commands.DeleteCity;
public class DeleteCityCommandValidator : AbstractValidator<DeleteCityCommand>
{
public DeleteCityCommandValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}