How it works...

Save your code and refresh your browser. Your URL should be http://localhost:[your port number]/student/find for this to work correctly.

The HTTP request is routed to the StudentController that in turn populates and returns the Student model containing the data we need and sends it to the Find Razor view. This is the essence of what the MVC framework is all about. There is a lot more to cover when it comes to the MVC framework and ASP.NET Core, but this chapter just deals with the basic introduction to these topics.

We as developers are continually challenged to stay up to date with the latest and greatest technologies. There ...

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.