DRAG DROP
You are developing an ASP.NET MVC Web API application. The methods of the Web API
must return details about the result of the operation. You need to create methods to update
and delete products. You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3, Target 4 and
Target 5 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.)
Correct answer is:
HttpResponceException
HttpResponceMessage
NotCintent
HttpResponceMessage
NotFound
No, answer is correct:
NotFound
Equivalent to HTTP status 404.NotFound indicates that the requested resource does not exist on the server.
NoContent
Equivalent to HTTP status 204.NoContent indicates that the request has been successfully processed and that the response is intentionally blank.
https://msdn.microsoft.com/es-es/library/system.net.httpstatuscode(v=vs.110).aspx