mycorerepository/MyCore/DTO/RequestParam.cs

22 lines
566 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MyCore.DTO
{
public class RequestParam
{
private const int maxPageCount = 50;
public int? Page { get; set; }
private int? _pageCount = maxPageCount;
public int? PageCount
{
get { return _pageCount; }
set { _pageCount = (value > maxPageCount) ? maxPageCount : value; }
}
public string SiteId { get; set; }
public string OrderBy { get; set; } = "Name";
}
}