In a blogging platform built with ASP.NET Core MVC, when a user submits a new blog post, which component would handle the validation and submission process?

  • Controller
  • View
  • Model
  • Middleware
The Controller component in the MVC pattern is responsible for handling user input, including validation and processing. In this scenario, it would handle the validation and submission process when a user submits a new blog post. The Controller receives the user's input, validates it, interacts with the Model to save the data, and then updates the View if necessary.
Add your answer
Loading...

Leave a comment

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