You are developing an ASP.NET MVC application.
The application provides a RESTful API for third-party applications. This API updates the
information for a contact by embedding the information in the URL of an HTTP POST.
You need to save the Contact type when third-party applications use the EditContact
method.
Which code segment should you use? (Each correct answer presents a complete solution.
Choose all that apply.)
A.
Option A
B.
Option B
C.
Option C
D.
Option D
B, D
Seems to me it should be B and C
B,D
“information in the URL”
Should be B & C
QueryStringValueProvider cannot be used in the action method parameter. Check in code and see expected results. Thus, C is not correct
QueryStringValueProvider is a model binder and cannot be accessed like the example shows
“A” retrieves values from the *form* and the question specifically says to get them from the URL