23 lines
410 B
C#
23 lines
410 B
C#
using System;
|
|
namespace Venues.Filter
|
|
{
|
|
public class PaginationFilter
|
|
{
|
|
public int PageNumber { get; set; }
|
|
public int PageSize { get; set; }
|
|
|
|
public PaginationFilter()
|
|
{
|
|
this.PageNumber = 1;
|
|
this.PageSize = 10;
|
|
}
|
|
|
|
public PaginationFilter(int pageNumber, int pageSize)
|
|
{
|
|
this.PageNumber = pageNumber < 1 ? 1 : pageNumber;
|
|
this.PageSize = pageSize > 10 ? 10 : pageSize;
|
|
}
|
|
}
|
|
}
|
|
|