namespace LittleShop.DTOs; public class PagedResult { public List Items { get; set; } = new(); public int TotalCount { get; set; } public int PageNumber { get; set; } public int PageSize { get; set; } public int TotalPages => (int)Math.Ceiling((double)TotalCount / PageSize); public bool HasPrevious => PageNumber > 1; public bool HasNext => PageNumber < TotalPages; }