The data model supplied to the default back office application
Beispiel #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));
        }
        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);
        }