O'Reilly logo

Pro ASP.NET Web API: HTTP Web Services in ASP.NET by Ali Kheyrollahi, Alexander Zeitler, Tugberk Ugurlu

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

CHAPTER 9

image

Controllers and Actions

If we think of the ASP.NET Web API framework as a human body, the controller and actions part is the heart of that body. Many components of the Web API framework are glued together by the ApiController class, which is the default controller implementation provided out of the box. Filters, model binding, formatters, action selection—these are all part of the controller execution process.

In this chapter, we will first explain how a request comes into a controller. Then we will take a different approach and get started with the hard way: implementing our own controller to understand what is really going on. Later ...

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