All pastes #341383 Raw Edit

Stuff

public text v1 · immutable
·published 2007-02-05 16:28 UTC
rendered paste body
Model:

if (pageIndex <= 0)
{
    pageIndex = 1;
}

int startIndex = (pageIndex * pageSize) - pageSize;

SlicedFindAll(typeof(Whatever), startIndex, pageSize);

Controller:

PaginationHelper.CreateCustomPage(Controllers, datasource, currentPage, totalRecords)