In one of the tutorials, the controller sends back data in a format that JavaScript can easily parse. What type of action result does this refer to?

  • ViewResult
  • JsonResult
  • RedirectToActionResult
  • ContentResult
When a controller sends data that JavaScript can easily parse, it usually returns a JsonResult. This action result serializes data into JSON format, making it suitable for consumption by JavaScript code.
Add your answer
Loading...

Leave a comment

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