This article is part 4 of an X-Part series. If you have not been following the series, you can find the first article Here.
On Today’s Agenda …
Welcome to Part 4 of the Your First MVC Application series. The aim of this article is to introduce Paging within the application using a NuGet package and we will also allow users to search for a contact by name. Then I will discuss Concurrency, the methods available to prevent it and we will then implement some Concurrency Handling into the application.
Paging
Let’s start of by adding paging to the list of our Contact’s, which is held on the Contact Controller’s Index view. To do this, we need to add a NuGet packaged called PagedList, which brings with it the PagedList datatype, which is a collection of the declared type, similar to a list but with added methods to allow us to easily page our data.
Right click on your Project and select Manage NuGet Packages. In the Search Box of the popup windows (Top right corner) type “PagedList”. Install the package, as illustrated below;

