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