The data model supplied to the default back office application
Ejemplo n.º 1
0
        public virtual ActionResult App(string appAlias)
        {
            //create the model to return
            var model = new BackOfficeDefaultModel
            {
                //Applications = apps,
                TreeModel = new TreeRenderModel(Url.GetTreeUrl(appAlias))
                {
                    ManuallyInitialize = true
                },
                //DefaultDashboardEditor = editor,
                CurrentApplicationAlias = appAlias,
                MenuItems = _menuItems.Select(x => x.Value)
            };

            return(View("Index", model));
        }
Ejemplo n.º 2
0
        public virtual ActionResult App(string appAlias)
        {
            
            //create the model to return
            var model = new BackOfficeDefaultModel
                            {
                                //Applications = apps,
                                TreeModel = new TreeRenderModel(Url.GetTreeUrl(appAlias)) { ManuallyInitialize = true },
                                //DefaultDashboardEditor = editor,
                                CurrentApplicationAlias = appAlias,
                                MenuItems = _menuItems.Select(x => x.Value)
                            };

            return View("Index", model);
        }