December 2019
Intermediate to advanced
510 pages
11h 33m
English
The purpose of action methods is to handle and respond to incoming requests. The example described in this section will show you how to deal with HTTP requests using controllers. We will apply some of the concepts we have looked at in previous chapters, such as dependency injection. The following example will use the same project structure we created in Setting up an ASP.NET Core project section of Chapter 2, Overview of ASP.NET Core.
The next subsection introduces a plain in-memory repository that will be used to store some data and retrieve it through ...