Add project files

This commit is contained in:
2025-10-04 13:27:29 +03:00
parent 75eba696c9
commit cc53824229
46 changed files with 3328 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
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;
}