13 lines
285 B
C#
13 lines
285 B
C#
using FluentValidation;
|
|
|
|
namespace ExpenseTracker.Application.Accounts.Commands.Delete;
|
|
|
|
public class DeleteAccountCommandValidator : AbstractValidator<DeleteAccountCommand>
|
|
{
|
|
public DeleteAccountCommandValidator()
|
|
{
|
|
RuleFor(e => e.Id)
|
|
.NotEmpty();
|
|
}
|
|
}
|