autobus-api_old/AutobusApi.Application/Addresses/Queries/GetAddress/GetAddressQueryValidator.cs

12 lines
261 B
C#

using FluentValidation;
namespace AutobusApi.Application.Addresses.Queries.GetAddress;
public class GetAddressQueryValidator : AbstractValidator<GetAddressQuery>
{
public GetAddressQueryValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}