I have been using this example for my code. http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/sorting-filtering-and-paging-with-the-entity-framework-in-an-asp-net-mvc-application My issue is in controller I simply cannot afford to make a call to database 1000 times if there are 1000 pages. How can i store my list somewhere in controller or model and use that when calling this students has to be stored somewhere.
return View(students.ToPagedList(pageNumber, pageSize));