I'm still not quite sure how to do this in the Web API controller. I'm basically trying to obtain all form values that were posted to my API. So for example, if a web form has a firstname and lastname textbox, and they post these values to the api, how
to I obtain these values on the api side? I guess i'm trying to figure out how to do the webform equivalent of Request.Form["firstname"]...but in the API.
jjonesca
Member
2 Points
7 Posts
How to obtain POST Request values in the API
Apr 24, 2012 06:05 PM|LINK
I'm still not quite sure how to do this in the Web API controller. I'm basically trying to obtain all form values that were posted to my API. So for example, if a web form has a firstname and lastname textbox, and they post these values to the api, how to I obtain these values on the api side? I guess i'm trying to figure out how to do the webform equivalent of Request.Form["firstname"]...but in the API.
Thanks in advance.