I am fairly new to Web API so please forgive a stupid question
I have a Web API 2 method......
[System.Web.Http.HttpPost]
public MyAPIController AddItemToBasket(Guid b, Guid l, Guid a,
Guid cid, int d, int p, int q)
{
..blah blah
}
I am putting together a Winform test app.
I cannot seem to pass the parameters into the method. I see many examples where a POST method has an object as a parameter and that seems straightforward, but bizarly, passing in simple types seems far more of a head ache.
It seems I need to populate a HTTPContent var and pass that but I cannot see how to do that.
Or, should I just wrap these parameters in an object. Either way - I'd like to know how to do this for future use.
TIA,
Ant