13 lines
301 B
C#
13 lines
301 B
C#
using FluentValidation;
|
|
|
|
namespace ExpenseTracker.Application.Transactions.Commands.Delete;
|
|
|
|
public class DeleteTransactionCommandValidator : AbstractValidator<DeleteTransactionCommand>
|
|
{
|
|
public DeleteTransactionCommandValidator()
|
|
{
|
|
RuleFor(e => e.Id)
|
|
.NotEmpty();
|
|
}
|
|
}
|