Apply paging on records in asp.net MVC

Create a new project in visual studio with Asp.net MVC template. Go to tools and Library package manger->package manger console and write following command
Install-Package PagedList.Mvc. it will install a very help full extension which help us implementing paging.
After that click on controller and add a new controller name it ShowAllAuthors. i am using Pubs database with entity framework database first approach.
You can learn more about How we connect database using database first approach in entity framework