首页 > Windows开发 > 详细

Multiple actions were found that match the request Web API

时间:2015-03-11 12:12:25      阅读:563      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!