![]() |
System.Web.Mvc.Controller class is used to create MVC controllers. Each derived controller’s method is also called “action method” and is mapped to URL through ASP.NET routing system.
MVC controllers accepts an operation through URL and forwards it to the domain model and afterwards selects a view to be displayed to a user.
Step 1: Request -> Controller -> Model (Persists to RDBMS)
Step 2: Response <- View <- Controller <- Model
Different engines are available for View. MVC 3 introduced Razor View Engine for instance which is an addition to ASPX View.
