DRAG DROP
You are developing a RESTful application by using ASP.NET MVC. The application is a pet
management system and implements the following method in a controller for retrieving pet
data.
The method must only accept JSON data using the standard MIME type.
You need to implement a controller that saves pet data and return a properly formatted
HTTP/1.1 protocol response. You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to
complete the code? {To answer, drag the appropriate code segments to the correct targets
in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes or scroll to view content.)
Explanation:
Return type HttpResponseMessage has been removed from RC, return ActionResult as part of System.Web.Mvc namespace.
HttpResponseMessage is non generic class.