Let’s create List page for our contacts. Instead of creating a new Action Method, we will use Index method for this purpose. It is always recommended to implement the Index (default View), and a List page is a good candidate for it. We are going to extend our application from the last discussion, CRUD Operations In ASP.NET Core 1.0 MVC Application - Part Two.

We will also remove unnecessary Menu items and add new items for our ContactList page.

Add Contact View Model in the project.

code
Add Contact Index View

Update Controller and Business Logic

Run Application in Debug Mode

Sample Source Code

I have placed the sample code for this session in "CRUD operations in ASP.NET Core 1.0 MVC Application Part 3_Code.zip" in CodePlex repository.