Spaces:
Sleeping
Sleeping
File size: 442 Bytes
36144b0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | namespace Frontend.Models
{
public class PagedResult<T>
{
public IEnumerable<T> Items { get; set; } = Enumerable.Empty<T>();
public int CurrentPage { get; set; }
public int TotalPages { get; set; }
public int TotalCount { get; set; }
public int PageSize { get; set; }
public bool HasPreviousPage => CurrentPage > 1;
public bool HasNextPage => CurrentPage < TotalPages;
}
}
|