I have tried to create a paging with list. i tried below code
IList<portable.ActionReturnResult> GetPage(
IList<portable.ActionReturnResult> list, int page, int pageSize)
{
return list.Skip(page * pageSize).Take(pageSize).ToList();
}
IList<portable.ActionReturnResult> Pageload =
GetPage(appBase.Results, currentpage, pageSize).ToList();
This code not return correct value. I have 100 records(page size is 5 and 20 pages) if my page=20 and page size=5 then this return 0. is this code correct? i found this.
I need load my 20 th page load(with last 5 records)