12 lines
395 B
C#
12 lines
395 B
C#
namespace T120B165_ImgBoard.Utils;
|
|
|
|
public class PagedList<T>(List<T> items, int pageNumber, int pageSize, int totalCount)
|
|
{
|
|
public int CurrentPage { get; } = pageNumber;
|
|
public int PageSize { get; } = pageSize;
|
|
public int TotalCount { get; } = totalCount;
|
|
public int TotalPages => (int) Math.Ceiling((double)TotalCount / PageSize);
|
|
|
|
public List<T> Items { get; } = items;
|
|
}
|