Files
T120B165/T120B165-ImgBoard/Utils/PagedList.cs
2025-10-04 13:27:29 +03:00

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;
}