In this chapter you will see that in the world of the MVC pattern, controllers process incoming HTTP requests from users. Each HTTP request is handled by a specific controller. ASP.NET MVC implements the concept of controllers with .NET classes that have methods to process such requests. The methods in a controller are called action methods because they return an object of type ActionResult.

The processing of a request starts with an element called the routing engine, which maps the request to a controller and a method (this chapter provides only a brief introduction to routing; Chapter 10 examines it in more detail). After ...

Get Beginning ASP.NET MVC 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.