MVC中MVC Action方法能有多少重载?

是否可以如下有N个重载呢?为什么?

        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult Index(string Name)
        {
        }

        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult Index(int Id)
        {
        }
        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Index(int n,int a,int b)
        {


潇潇雨雨
浏览 729回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP