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