Files
imprink/src/Imprink.Application/Products/Dtos/PagedResultDto.cs
lumijiez 92bdb8444b Clean up
2025-06-20 14:54:19 +03:00

12 lines
447 B
C#

namespace Imprink.Application.Products.Dtos;
public class PagedResultDto<T>
{
public IEnumerable<T> Items { get; set; } = new List<T>();
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 HasPreviousPage => PageNumber > 1;
public bool HasNextPage => PageNumber < TotalPages;
}