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

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -