web api访问自定义方法
请求大神们,asp.net mvc4中webapi如何访问自定义方法[HttpPost]
public IEnumerable<Product> FindWhere(string name,int pcount)
{
return testDB.Product.Where((p)=>(p.Name.IndexOf(name)>0&&p.PCount>p.PCount));
}
我要访问这个方法,如何调用呢 --------------------编程问答-------------------- 类.方法名称 ?
--------------------编程问答--------------------
--------------------编程问答-------------------- http://localhost:7745/api/product
class.fun();
这是访问地址 --------------------编程问答-------------------- 大神们,求顶啊,求帮助 --------------------编程问答-------------------- 顶
补充:.NET技术 , ASP.NET