QuizController

Let's move on to QuizController:

  1. From Solution Explorer, open the /Controllers/ folder.
  2. Right-click on the folder and select the usual Add | New Item command.
Ensure not to use the Add | Controller option available there, as it will activate a wizard-like feature that will also add some dependencies to our project, which is something we definitely don't need (yet).
  1. From the ASP.NET Core | Web treeview node, select Web API Controller Class; call the new file QuizController.cs and click on OK to have it added under the /Controllers/ folder, along with the already existing HomeController.cs and SampleDataController.cs, which we reviewed in Chapter 1, Getting Ready.

The controller will be created with a bunch of sample methods, ...

Get ASP.NET Core 2 and Angular 5 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.