ASP.NET MVC Architecture

Architecture:

                  Now we will look into the Execution flow of MVC Application when request comes from a client machine.
MVC Application Flow
ASP.NET MVC Application Flow

 Flow:

      For example we will take a sample URL say http://sample.com/Test/Index.
When a client request the URL the ASP.NET Routing finds the matching controller  and executes the action method associated with the URL.

      In sample URL http://sample.com/Test/Index,  Test is the controller Name and Index is the action method.Controllers are normal C# classes, usually derived from the System.Web.Mvc.Controller class and action method is a public class derived from Controller.The action method will execute and interacts with the Model to get necessary data to render to the View as Response.As we already read Controller acts as a mediator between Model and View.

      We will learn each of the logical units separately in upcoming chapters.