Which code segment should you use?

You are developing an ASP.NET MVC application that enables you to edit and save a
contact.
The application must not save contacts on an HTTP GET request.
You need to implement the controller.
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 that enables you to edit and save a
contact.
The application must not save contacts on an HTTP GET request.
You need to implement the controller.
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 4

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


Lclhst

Lclhst

Correct answer is BC!

chicco

chicco

I think BC are the correct answers

Mojtaba

Mojtaba

B, C
Because of following code A is Wrong !
this.HttpContext.Request[“ActionName”]

Correct is:
this.HttpContext.Request.RequestType