You're learning about ASP.NET Core MVC and come across an example where the controller returns a webpage. Which action result is this likely using?

  • ViewResult
  • JsonResult
  • RedirectToActionResult
  • ContentResult
When a controller returns a webpage in ASP.NET Core MVC, it typically uses a ViewResult. A ViewResult represents an HTML page that is rendered to the client. It's commonly used to generate HTML views for web applications.
Add your answer
Loading...

Leave a comment

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