Adding Web API Controller to an ASP.NET application

We just enabled and wired up the MVC service to our application. Now, let's add a Web API controller by following these steps:

  1. Right-click on the My Todo project, navigate to Add | New Folder, and name the folder Controllers:
Create a new folder for controllers under the My Todo project
  1. Now, right-click on the Controllers folder that we just created and go to Add | New Item:
Add the Web API controller to the Controllers folder
  1. Select Minimal Dependencies and click on Add if you get an ...

Get Learning Angular for .NET Developers 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.