Multiple actions were found that match the request Web API

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

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

 

posted @ 2015-03-11 10:57  Vincent.Dr  阅读(728)  评论(0编辑  收藏  举报