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

16 lines
424 B
C#

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