Spaces:
Sleeping
Sleeping
| 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; | |
| } | |
| } | |