MCQs>IT & Programming>Microsoft MVC Framework MCQs>You are writing an action method called AddProduct inside the Product controller. The logic in your code indicates that you need to call the Cart controller’s Add method as a result of your controller’s action method. Which line of code would accomplish this?
Microsoft MVC Framework MCQs
You are writing an action method called AddProduct inside the Product controller. The logic in your code indicates that you need to call the Cart controller’s Add method as a result of your controller’s action method. Which line of code would accomplish this?
Answer
Correct Answer: return Redirect("Cart/Add")
Explanation:
Note: This Question is unanswered, help us to find answer for this one