注册路由的应用

public class ReceptionAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Reception";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Reception_default",
                "Reception/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
    }

posted @ 2013-08-15 16:48  nieyulin  阅读(192)  评论(0编辑  收藏  举报