c# - How to get HttpRequestMessage data -


i have mvc api controller following action.

i don't understand how read actual data/body of message?

[httppost] public void confirmation(httprequestmessage request) {     var content = request.content; } 

from this answer:

[httppost] public void confirmation(httprequestmessage request) {     var content = request.content;     string jsoncontent = content.readasstringasync().result; } 

Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -