O'Reilly logo

Beginning ASP.NET MVC 4 by José Rolando Guay Paz

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 4

image

Controllers

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 ...

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