autobus-api_old/AutobusApi.Application/Companies/Commands/DeleteCompany/DeleteCompanyCommandValidator.cs

12 lines
280 B
C#

using FluentValidation;
namespace AutobusApi.Application.Companies.Commands.DeleteCompany;
public class DeleteCompanyCommandValidator : AbstractValidator<DeleteCompanyCommand>
{
public DeleteCompanyCommandValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}