You are Here

Home > Development > Technologies > MVC Services






MVC Icon

MVC (Model View Controller)


MVC (Model-View-Controller) is an architectural or Security pattern that separates an application into three main logical components:-

  • Model
  • View
  • Controller

Each of these MVC components is built to handle specific development aspects of an application. Model-View-Controller is one of the most frequently used industry-standard web development frameworks to create scalable and extensible projects.



Model

The Model component of MVC corresponds to all the data-related logic that the user works with. The model can represent either the data that is being transferred between the View and Controller components of MVC or any other business logic-related data. For example, a Customer object will retrieve the customer information from the manipulate it, database, and update its data back to the database or use it to render data.

View

The View MVC component is used for all the UI logic of the application. For example, the Customer view will include all the UI components such as dropdowns, text boxes, etc. that the final user interacts with.

Controller

Controller act as an interface between Model and View components of MVC to process all the incoming requests and business logic, manipulate data using the Model component and interact with the Views to render the final output. For example, the Customer controller will handle all the inputs and interactions from the Customer View and update the database using the Customer Model. The same controller will be used to view the Customer data also.


MVC Process



Asp.Net MVC

ASP.NET language supports three major development models :

  1. Web Pages
  2. Web Forms and
  3. MVC (Model View Controller).

ASP.NET MVC framework is a highly testable, lightweight presentation framework that is integrated with the existing ASP.NET features, such as authentication, master pages, etc. Within Asp.NET, this framework is defined in the System, Web.Mvc assembly. The latest version of the MVC Framework is 5.0 is used. We use Visual Studio to create ASP.NET MVC applications which can be added as a template or layouts in Visual Studio.



ASP.NET MVC Features

ASP.NET MVC provides the following features :

  • ASP.NET MVC Ideal for developing complex but lightweight applications.
  • MVC Provides a pluggable and extensible framework, which can be easily replaced and customized.
  • It Utilizes the component-based design of the application by logically dividing it into Model, View, and Controller components.
  • MVC enables the developers to manage the complexity of large-scale projects and work on individual components. MVC structure enhances the testability of the application, test-driven development since all the components can be designed interface-based and tested using mock objects. Hence, ASP.NET MVC Framework is ideal for projects with a large team of web developers or Web Designer.
  • MVC Supports all the existing vast ASP.NET functionalities, such as Authorization and Authentication, User Controls, Master Pages, Data Binding, Memberships, ASP.NET Routing, etc.
  • Does not use the concept of View State which is present in ASP.NET. It helps in building applications, which are lightweight and gives full control to the developers.