PrepAway - Latest Free Exam Questions & Answers

Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to complete the code?

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.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

7 Comments on “Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to complete the code?

      1. nex-54 says:

        It is said “by using ASP.NET MVC”
        So, i don’t think HttpResposeMessage is correct. Also HttpResposeMessage is not generic type to use it like “HttpResposeMessage “




        1



        0
  1. Peter Vogel says:

    Since there is no generic version of HttpResponseMessage (HttpResponseMessage) — it only existed in a beta version of the Web API — it’s hard to imagine that it’s part of the right answer. Since the question specifically asks for ASP.NET MVC the return type should be Action Result.




    0



    1

Leave a Reply