|
Controllers process incoming requests, handle user input and interactions, and execute appropriate application logic. A controller class typically calls a separate view component to generate the HTML markup for the request.
The Controller class is responsible for the following processing stages:
-> Locating the appropriate action method to call and validating that it can be called.
-> Getting the values to use as the action method's arguments.
-> Handling all errors that might occur during the execution of the action method.
-> Providing the default WebFormViewEngine class for rendering ASP.NET page types (views).
Below fig shows how http request is processed.
|