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.
Loading...
Related Quiz
- How does the "Controller" in the MVC design pattern typically receive user input in ASP.NET Core?
- Dependency injection in ASP.NET Core MVC allows services to be injected into controllers via their _________.
- You've heard about two-factor authentication for enhancing security. How can ASP.NET Core Identity help in implementing this feature?
- Your application uses ASP.NET Core Identity for authentication. During the security audit, it was pointed out that the application should enforce password reset every 90 days. How can you enforce this in ASP.NET Core?
- Which HTTP status code is commonly associated with a server error caused by an unhandled exception in a web application?