18 lines
373 B
C#
18 lines
373 B
C#
using FluentValidation;
|
|
|
|
namespace ExpenseTracker.Application.Accounts.Commands.Update;
|
|
|
|
public class UpdateAccountCommandValidator : AbstractValidator<UpdateAccountCommand>
|
|
{
|
|
public UpdateAccountCommandValidator()
|
|
{
|
|
RuleFor(e => e.Id)
|
|
.NotEmpty();
|
|
|
|
RuleFor(e => e.Name);
|
|
|
|
RuleFor(e => e.UserId)
|
|
.NotEmpty();
|
|
}
|
|
}
|