# Functions

GetFirstAndLastPages returns the first and last pages of a paginated results.
GetOffset returns the offset (0 based) into a list, given a page number (1 based) and the size of a page.
GetPagesToDisplay returns the pages to be displayed within the first and last pages.
GetTotalPages returns the total pages from the total results count and pagesize parameters.