We will start with an example of coding the service from scratch. For starters, we are going to add a controller class to the project we’ve been working with. The following walks you through this process:
1. Right-click the
Controllers folder and choose Add, New Item. From the Add New Item dialog, select Web API Controller Class. Figure 19.5 shows an example. Notice the left side of the dialog that ASP.NET 5 is selected.
2. Name the file
CustomerController and click the Add button.
Visual Studio will then create a
controller class on ...