O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required