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
Post a Comment