auto.bus_api/SharedModels/QueryStringParameters/QueryStringParameters.cs

16 lines
380 B
C#

namespace SharedModels.QueryStringParameters;
public class QueryStringParameters
{
public int PageNumber { get; set; } = 1;
private const int MaxPageSize = 50;
private int _pageSize = 10;
public int PageSize
{
get => _pageSize;
set => _pageSize = value > MaxPageSize ? MaxPageSize : value;
}
public string? Search { get; set; }
}