Ejemplo n.º 1
0
        public ActionResult Index(string suite)
        {
            ViewBag.Navigation = FilterEmptyCategories(NavigationProvider.SuiteWidgets(suite));
            ViewBag.SuiteTitle = SuiteTitles[suite];

            return(View());
        }
Ejemplo n.º 2
0
        public IActionResult Index()
        {
            var widgets = NavigationProvider.SuiteWidgets(HostingEnvironment.WebRootFileProvider)
                          .Where(widget => widget.ShouldInclude);

            ViewBag.Navigation = widgets;

            return(View());
        }