Files
BimAI/BimAI.Application/DTOModels/Common/PagedResult.cs

12 lines
412 B
C#
Raw Normal View History

2025-10-11 11:33:46 +02:00
namespace BimAI.Application.DTOModels.Common;
2025-07-17 14:29:02 +02:00
public class PagedResult<T>
{
public List<T> Items { get; set; } = new();
public int TotalCount { get; set; }
public int PageSize { get; set; }
public int Page { get; set; }
public int TotalPages => (int)Math.Ceiling(TotalCount / (double)PageSize);
public bool HasPreviousPage => Page > 1;
public bool HasNextPage => Page < TotalPages;
}