autobus-api_old/AutobusApi.Application/Buses/Queries/GetBus/GetBusQueryValidator.cs

12 lines
241 B
C#

using FluentValidation;
namespace AutobusApi.Application.Buses.Queries.GetBus;
public class GetBusQueryValidator : AbstractValidator<GetBusQuery>
{
public GetBusQueryValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}