Tag: ASP.NET Core

ASP.NET Core MVC App

Models
Classes that represent the data of the app and that use validation logic to enforce business rules for that data. Typically, model objects retrieve and store model state in a database.

Views
Views are the components that display the app’s user interface (UI). Generally, this UI displays the model data.

Controllers
Classes that handle browser requests, retrieve model data, and than specify view templates that return a response to the browser. In an MVC app, the view only displays information; the controller handles and responds to user input and interaction. For example, the controller handles route data and query-string values, and passes these values to the model. The model might use these values to query the database.

 

Advertisements