public int GetNextPage(PageDetails pageDetails, int currentPage) { return(currentPage >= pageDetails.TotalPages ? -1 : currentPage + 1); }
public int GetNextPage(PageDetails pageDetails, int currentPage) { return(currentPage + pageDetails.PageSize > pageDetails.TotalRecords ? -1 : currentPage + pageDetails.PageSize); }