Create paging using skip and top straight from API(RESTful)

Topics: ASP.NET MVC
Jun 15, 2012 at 2:04 PM

Hello Guys,

I am trying to do paging using skip parameters from my external API (Rest) also i m using ASP.NET MVC3 application.

for e.g. i have top parameter for displaying 10 articles on one page (MAX = 10) and to display next page i have to use skip parameter like

if top =10 and skip = 0 then it will page to first page

if top = 10 and skip = 10 then it will page to next page

if top = 10 and skip = 20 then it will page to third page and so on.

I dont know how to create paging straight from external built API.

Please help me if possible to solve this problem.

 

Thanks.