12 lines
246 B
C#
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);
|
|
}
|
|
}
|