webapi设置一个Action同时支持get和post请求
[AcceptVerbs("GET", "POST")] public HttpResponseMessage Http([FromUri]ProxyHttpParam getParam, ProxyHttpParam postParam) { var res = new HttpResponseMessage(HttpStatusCode.OK); return res; }
"唯有高屋建瓴,方可水到渠成"
[AcceptVerbs("GET", "POST")] public HttpResponseMessage Http([FromUri]ProxyHttpParam getParam, ProxyHttpParam postParam) { var res = new HttpResponseMessage(HttpStatusCode.OK); return res; }