12 lines
250 B
C#
12 lines
250 B
C#
using FluentValidation;
|
|
|
|
namespace AutobusApi.Application.Routes.Queries.GetRoute;
|
|
|
|
public class GetRouteQueryValidator : AbstractValidator<GetRouteQuery>
|
|
{
|
|
public GetRouteQueryValidator()
|
|
{
|
|
RuleFor(v => v.Id).GreaterThan(0);
|
|
}
|
|
}
|