public int GetNextPage(PageDetails pageDetails, int currentPage)
 {
     return(currentPage >= pageDetails.TotalPages ? -1 : currentPage + 1);
 }
Пример #2
0
 public int GetNextPage(PageDetails pageDetails, int currentPage)
 {
     return(currentPage + pageDetails.PageSize > pageDetails.TotalRecords ? -1 : currentPage + pageDetails.PageSize);
 }