How to do it...

  1. Add a new folder to your project called Views. Inside that folder, add another folder called Student. Inside the Student folder, add an new item by right-clicking on the Student folder and selecting New Item... from the context menu. From the Add New Item dialog screen, search for the MVC View Page template and call it Find.cshtml.
  1. You should begin to notice that the Views folder, sub folders, and views follow a very specific naming convention. This is because the MVC framework follows a very specific convention, and when you look at the StudentController, this convention will become clear. The Views folder are Views,

Get C# 7 and .NET Core Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.