What is MVC ?
MVC is an architectural pattern used in programming which separates the representation and the user interaction.
MVC have three sections:
Model - Its an object which provides data to view taking from controller or view
View - It is the user Interface which user see on website
Controllers - It is responsible to handle the user's request by loading the required View and Models
How MVC works by flow?
At first user see the default view and do some action.
The action sends user request to controller.
Now controller decides which models and view to be returned as response.
View receives the response from controller and renders the view and bind the model data into it.
What are the benefits of using MVC?
Code and file seperation
Is MVC suitable for web and windows application both?
No, MVC is only suitable to web application only, for windows we use MVP achitecture pattern.
What are the versions of MVC, and which is the latest?
MVC 5 (latest)
Is MVC different from 3 layered architecture?
In which MVC version razor was introduced?