classlib/ExpenseTracker.Application/Accounts/Queries/Charts/GetIncomeBarChart/GetIncomeBarChartQueryValidator.cs
2024-08-07 21:12:02 +03:00

16 lines
395 B
C#

using FluentValidation;
namespace ExpenseTracker.Application.Accounts.Queries.Charts.GetIncomeBarChart;
public class GetIncomeBarChartQueryValidator : AbstractValidator<GetIncomeBarChartQuery>
{
public GetIncomeBarChartQueryValidator()
{
// RuleFor(v => v.AccountId).NotEmpty();
RuleFor(v => v.FromDate).NotEmpty();
RuleFor(v => v.ToDate).NotEmpty();
}
}