Can you please explain Model, View & Controller in MVC?
Please find below the explanation of Model, View & Controller:
- Model: Model denotes DTOs or POCO Classes or View Models that will be used to bind data to view.
- View: View here represents the UI layer. All the HTML required to render a page is written in this section.
- Controller: Controller is the main part. It captures the control when a request arrives, Action method defined in the controller gets
called. This action method fills data in ViewModels & then we return
a view that will render that data on some HTML page.