i

ASP.Net A Complete Guide

Model-View-Controller Pattern

MVC is a design pattern. The controller, Model, and View are the main components of the MVC.

Model: It represents the business layer. The model has the business logic. It retrieves and holds the data in it.

View: It represents the UI layer. The user provides the input to the request by using this layer.

Controller: It is the main component that interacts with the View and the model. It takes the request from the View and sends the data to the model, and again it receives data from the model and provides a response to the UI.