1

I have an admin controller to manage the appointments from the website, the routes I created as follows,

    public IEnumerable<RouteDescriptor> GetRoutes()
    {
        return new[] {

            new RouteDescriptor 
                {
                    Route = new Route(
                        "Admin/Bt.Forms/Appointments",
                        new RouteValueDictionary {
                                                    {"area", "Bt.Forms"},
                                                    {"controller", "AppointmentAdmin"},
                                                    {"action", "Index"}
                                                },
                        new RouteValueDictionary(),
                        new RouteValueDictionary {
                                                    {"area", "Bt.Forms"}
                                                },
                        new MvcRouteHandler())
              },
        };
    }

When navigated to the url, the admin layout and side menus are lost, can anybody enlighten me what I might be missing, Thanks in advance,

-George

4

1 回答 1

1

[Themed]简单地用属性装饰你的控制器动作。像这样:

[Themed]
[Admin]
public ActionResult MyAction (){


     return View();
}
于 2013-07-24T12:10:30.427 回答