Exemplo n.º 1
0
        public ActionResult Features()
        {
            ViewBag.Title = PresentationModel.GetViewTitleForTenant("Manage Features", this.Session.GetTenant());

            FeatureManager featureManager = new FeatureManager();

            List<FeatureTreeViewModel> features = new List<FeatureTreeViewModel>();

            IQueryable<Feature> roots = featureManager.GetRoots();
            roots.ToList().ForEach(f => features.Add(FeatureTreeViewModel.Convert(f, new IsFeatureInEveryoneGroupDelegate(IsFeatureInEveryoneGroup))));

            return View(features.AsEnumerable<FeatureTreeViewModel>());
        }