autobus-api_old/AutobusApi.Application/Cities/Queries/GetCity/GetCityQueryValidator.cs

12 lines
246 B
C#

using FluentValidation;
namespace AutobusApi.Application.Cities.Queries.GetCity;
public class GetCityQueryValidator : AbstractValidator<GetCityQuery>
{
public GetCityQueryValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}