autobus-api_old/AutobusApi.Application/Buses/Commands/DeleteBus/DeleteBusCommandValidator.cs

12 lines
260 B
C#

using FluentValidation;
namespace AutobusApi.Application.Buses.Commands.DeleteBus;
public class DeleteBusCommandValidator : AbstractValidator<DeleteBusCommand>
{
public DeleteBusCommandValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}