using FluentValidation; namespace ExpenseTracker.Application.Accounts.Queries.GetWithPagination; public class GetAccountsWithPaginationQueryValidator : AbstractValidator { public GetAccountsWithPaginationQueryValidator() { RuleFor(v => v.PageNumber) .GreaterThanOrEqualTo(1); RuleFor(v => v.PageSize) .GreaterThanOrEqualTo(1) .LessThanOrEqualTo(50); } }