public SidebarSurfaceController() { var config = SearchConfiguration.GetConfig(); _dataHubRawQueryService = new SearchService(config); _navigationItemService = new NavigationItemService(); _sidebarService = new SidebarService(_navigationItemService, _dataHubRawQueryService); }
protected virtual LayoutContext InitLayoutContext(LayoutContext context = null) { if (context == null) { context = new LayoutContext(); } context.User = UserContext; context.LogoUrl = PlatformConfiguration.LogoPath; context.Sidebar = SidebarService.CreateContext(); context.Menu = MenuService.CreateContext(); context.ActionName = (String)RouteData.Values["action"]; context.ContollerName = (String)RouteData.Values["controller"]; return(context); }