webapi设置一个Action同时支持get和post请求

[AcceptVerbs("GET", "POST")]
public HttpResponseMessage Http([FromUri]ProxyHttpParam getParam, ProxyHttpParam postParam)
{
    var res = new HttpResponseMessage(HttpStatusCode.OK);
    return res;
}
原文地址:https://www.cnblogs.com/sntetwt/p/12683329.html