当前位置:编程学习 > C#/ASP.NET >>

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));
        }

我要访问这个方法,如何调用呢 --------------------编程问答-------------------- 类.方法名称   ?
--------------------编程问答--------------------

class.fun();
--------------------编程问答-------------------- http://localhost:7745/api/product
这是访问地址 --------------------编程问答-------------------- 大神们,求顶啊,求帮助 --------------------编程问答-------------------- 顶
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,