码迷,mamicode.com
首页 > Windows程序 > 详细

Multiple actions were found that match the request Web API

时间:2015-03-11 12:13:57      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

在WebAPI工程入口不对外公开的接口不能使用public。

        [HttpPost]
        public string PostRequest([FromBody] Model model)
        {
            ///
        }
        //Validate方法是不对外公布的,得弄成私有的。
        private bool Validate(Model model)
        {
            return true;
        }

 

Multiple actions were found that match the request Web API

标签:

原文地址:http://www.cnblogs.com/vincentDr/p/4329278.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!