Which ASP.NET Core method is used to return a Razor view from a controller action?

  • ViewResult
  • JsonResult
  • ContentResult
  • RedirectResult
The ViewResult is used to return a Razor view from a controller action in ASP.NET Core. It allows you to render a view and pass a model to it, which can then be used for dynamic content generation.
Add your answer
Loading...

Leave a comment

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