autobus-api_old/AutobusApi.Application/Addresses/Commands/DeleteAddress/DeleteAddressCommandValidator.cs

12 lines
280 B
C#

using FluentValidation;
namespace AutobusApi.Application.Addresses.Commands.DeleteAddress;
public class DeleteAddressCommandValidator : AbstractValidator<DeleteAddressCommand>
{
public DeleteAddressCommandValidator()
{
RuleFor(v => v.Id).GreaterThan(0);
}
}