16 lines
424 B
C#
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();
|
|
}
|
|
}
|