[AcceptVerbs("GET", "POST")] public HttpResponseMessage Http([FromUri]ProxyHttpParam getParam, ProxyHttpParam postParam) { var res = new HttpResponseMessage(HttpStatusCode.OK); return res; }
webapi设置一个Action同时支持get和post请求
原文:https://www.cnblogs.com/sntetwt/p/12683329.html