auto.bus_api/SharedModels/QueryParameters/PagingParameters.cs
2022-11-23 19:45:15 +02:00

14 lines
324 B
C#

namespace SharedModels.QueryParameters;
public class PagingParameters
{
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;
}
}