using System; using System.Collections.Generic; namespace eprintServer.Responses; public class PagedResult { public List Items { get; set; } public int TotalCount { get; set; } public int PageSize { get; set; } public int CurrentPage { get; set; } public int TotalPages => (int)Math.Ceiling(TotalCount / (double)PageSize); public PagedResult(List items, int totalCount, int page, int pageSize) { Items = items; TotalCount = totalCount; CurrentPage = page; PageSize = pageSize; } }