In the MVC application we have architecture with three main directories Model, View and controller. These sections are as follows:
Model: It contains the models or classes that we are going to use in our application. For eq. Person.cs class will have properties like first name and last name.
View: It will contain the user interface and could be strongly bind view which will show data related to any model, with which it is binded.
Controller: It handles the requests made by user through the browser and redirect to the appropriate view.
For eg. if user has request like /Home/Index, then in this case Home is the controller(having name as HomeController) and Index is the action method defined in the Home controller redirecting the user to the View having name same as the action method which is Index.cshtml.
0 Comment(s)