autobus-api_old/AutobusApi.Application/Companies/Queries/GetCompany/GetCompanyQueryValidator.cs

12 lines
261 B
C#

using FluentValidation;
namespace AutobusApi.Application.Companies.Queries.GetCompany;
public class GetCompanyQueryValidator : AbstractValidator<GetCompanyQuery>
{
public GetCompanyQueryValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}