We just enabled and wired up the MVC service to our application. Now, let's add a Web API controller by following these steps:
- 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
- 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
- Select Minimal Dependencies and click on Add if you get an ...