MVC Grid Paging with EntityFramework or Stored Procedures

Here we’ll implement Custom Paging in webgrid in MVC4 application.
It is a very essential approach to use paging technique in applications where lot of data to be loaded from the database.

HomeController.cs

Index.cshtml

Custom paging

Or you can use PagedList to do the paging code.

Updated version using Stored Procedures on MyGit.