c# mvc 路由规则学习片段

1、初步接触mvc 路由

routes.MapRoute(
               "CM",
               "CM/{controller}/{action}/{id}/",
               new { controller = "Home", action = "Index", id = UrlParameter.Optional }
           );

匹配: http://www.example.com/CM/{controller}/{action}/{id}

posted @ 2017-02-17 18:18  拾诚  阅读(498)  评论(0编辑  收藏  举报