Microsoft
70-515 · Question #38
70-515 Question #38: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #38. The question stem and answer options stay visible for context.
Question
You are implementing an ASP.NET MVC 2 Web application. A controller contains the following code. public ActionResult Edit(int id) { return View(SelectUserToEdit(id)); } public ActionResult Edit(Person person) { UpdateUser(person); return RedirectToAction("Index"); } The first Edit action displays the user whose details are to be edited, and the second Edit action is called when the Save button on the editing form is clicked to update the user details. An exception is thrown at run time stating that the request for action Edit is ambiguous. You need to correct this error and ensure that the controller functions as expected. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Options
- AAdd the following attribute to the first Edit action.
- BAdd the following attribute to the first Edit action.
- CAdd the following attribute to the second Edit action.
- DAdd the following attribute to the second Edit action.
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.