Which code segment should you use?

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

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



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Diego

Diego

B, D

SB

SB

Seems to me it should be B and C

M

M

“information in the URL”

Should be B & C

Bogdan

Bogdan

QueryStringValueProvider cannot be used in the action method parameter. Check in code and see expected results. Thus, C is not correct

FigArt

FigArt

QueryStringValueProvider is a model binder and cannot be accessed like the example shows

FigArt

FigArt

“A” retrieves values from the *form* and the question specifically says to get them from the URL