To pass data from a controller to a view, you can use a ________ object.

  • ViewData
  • ViewBag
  • TempData
  • Model
To pass data from a controller to a view, you can use a Model object. Models are classes that define the data structure and properties you want to pass to the view. They enable strong typing and are a fundamental part of the Model-View-Controller (MVC) architecture in ASP.NET Core.
Add your answer
Loading...

Leave a comment

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