CHAPTER 5

image

Up and Down the Stack with a POST

In the previous chapter, we started with an empty folder, created a basic source-tree structure, added a new Visual Studio 2013 solution, and added the projects we know we’ll need for this little REST service. We also added some of the more basic code components and set up the project and library references we anticipate needing. We wrapped things up by creating the database.

In this chapter, we will implement our first controller method (or “action method”). Along the way, we will need to deal with some of the more complex infrastructural concerns in the task-management service and highlight several ...

Get ASP.NET Web API 2: Building a REST Service from Start to Finish now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.