//[Authorize(Roles = "Corporate Hierarchy Admin")]
        public ActionResult Admin()
        {
            AdminViewModel adminViewModel = new AdminViewModel();
            try
            {
                Hierarchy hierarchy = new Hierarchy
                {
                    CompanyViewModels = GetCompanyViewModels()
                };

                adminViewModel.Hierarchy = hierarchy;
                PopulateEntityStatuss();
                PopulateLocations();
                PopulateLocationStatuss();
                PopulateEntities();
                PopulateCompanies();
                PopulateSBUs();

            }
            catch (Exception e)
            {
                logger.Error("Exception", e);
                return null;
            }

            return View(adminViewModel);
        }
Exemple #2
0
        public ActionResult AlgecoScotsman()
        {
            var hierarchy = new Hierarchy
            {
                //SBUViewModels = GetSBUViewModels()
            };

            return View(hierarchy);
        }
        public ActionResult _Hierarchy()
        {
            Hierarchy hierarchy = new Hierarchy
                {
                    //CompanyViewModels = GetCompanyViewModels(),

                };

            return View(hierarchy);
        }