In an e-commerce application, after a user successfully checks out, you want to redirect them to a confirmation page. Which action result can achieve this redirection?

  • Redirect
  • Ok
  • View
  • BadRequest
To achieve a redirection after a successful action, you should use the Redirect action result. It allows you to specify the URL to which the user should be redirected, typically a confirmation page in this case. The Redirect result returns an HTTP 302 status code, indicating a temporary redirect.
Add your answer
Loading...

Leave a comment

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