Suppose you are building a dashboard in ASP.NET Core MVC. The dashboard needs to display a summary of various data points. Which component would be best suited to decide which data to fetch and how to process it for display?

  • Controller
  • View
  • Model
  • Middleware
The Model component in the MVC pattern is responsible for managing data and business logic. In this scenario, the Model would be best suited to decide which data to fetch from various sources (such as databases, APIs, or other services) and how to process that data for display in the dashboard. The Model abstracts data retrieval and processing details from the Controller and View.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *