what's the issue here?? webapi + angular + post
|Added at||2017-01-03 03:01|
Something weird is happening .... and I don't really understand why.... This post works only if change the id parameter type from int to object.
I know the best way is to set the value in the url... however I tried to avoid this thing... my preference is to post values as json
public IHttpActionResult Gettest(int id) = don't work !
public IHttpActionResult Gettest(object id) = it works
What am I doing wrong ?.... I tried to change the parameter name from "id" to "x" on server/client sides and I got the same result.