autobus-api_old/AutobusApi.Application/Countries/Queries/GetCountry/GetCountryQueryValidator.cs

12 lines
261 B
C#

using FluentValidation;
namespace AutobusApi.Application.Countries.Queries.GetCountry;
public class GetCountryQueryValidator : AbstractValidator<GetCountryQuery>
{
public GetCountryQueryValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}