MVC API post方式调用

c#
2015-05-15 0 575
MVC API post方式调用

[HttpPost]

        public string xdg()

        {

            return "拦截返回POST";

        }

        //public string Post123()

        //{

        //    return "返回了POST";

        //}

有两种方法,只能使用其中一种,不然会报错。默认是第二个以Post开头,123可去掉。

遇见资源网 c# MVC API post方式调用 http://www.ox520.com/12447.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务