Yuyuqt
add: authorization
0acba57
Raw
History Blame Contribute Delete
448 Bytes
namespace BlazorFrontend.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;
}
}