Post (or put) request with uri parameter not working when calling with HttpClient
问题 In trying to make a Web API in c# and consume it via c# HttpClient, I've already written some controllers and client calls and is working fine, but now I need to call a Post method with two parameters, one simple value (long) directly in the URL[FromURI], and the another one is a complex type passed in body. I think I can simplify the answer, suppose I just want to call a post or put with one simple parameter passed in the URL. First of all, lets see my web server mapping config: