public Page(IPagedList <TData> pagedList) { Data = pagedList; PaginationContext = new PaginationContext( page: pagedList.PageNumber, size: pagedList.PageSize, pages: pagedList.PageCount, totalRows: pagedList.TotalItemCount); }
public Page(IEnumerable <TData> data, PaginationContext context) { Data = data ?? throw new ArgumentNullException(nameof(data)); PaginationContext = context ?? throw new ArgumentNullException(nameof(context)); }