Tuesday , June 19 2018
Home / Dot Net / MVC / MVC Introduction

MVC Introduction

MVC is a Web Application Framework developed by Microsoft. Ideally it is a 3 Layer Architectural Pattern. MVC Means Model, View and  Controller.Each Layer has its own responsibility.It is Widely Used Framework in Application Development, It is Light Weight and Highly Testable presentation framework.

The pattern specifies where each kind of logic should be located in the application. The User Interface logic belongs in the view. Input logic belongs in the controller. Business logic belongs in the model.

This separation helps you manage complexity when you build an application, because it enables you to focus on one aspect of the implementation at a time. For example, you can focus on the view without depending on the business logic.

The loose coupling between the three main components of an MVC application also promotes parallel development. For example, one developer can work on the view, a second developer can work on the controller logic, and a third developer can focus on the business logic in the model.
Controller:
Controllers are components, handles user interactions,manipulate request and return appropriate view  to user. It does not know what is happening in the action, It simply pass user request values to business  service method and return view with response.

Model:

Model objects retrieve and store model state in a database. Which contains Actual Business Logic. For example when a user wants to save transaction details mean while he wants to know the balance from his account.

View:

Views are components, display the application’s user interface (UI). Typically this UI may consists of model data or else static html content. For example in product buying page contains product information with user choices like quantity etc.

MVC Design Pattern:

MVC Design Pattern

 

Print Friendly, PDF & Email

Give us your valuable feedback

comments

About balamurali devara

%d bloggers like this: