public ActionResult Index()
        {
            var viewModel = new HomeViewModel
            {
                DeploymentDomains = DeploymentDomainsHelpers.CreateDeploymentDomainsSelectMenu(DeploymentDomainsHelpers.GetDeploymentDomains()),
                Categories        = CategoryHelpers.CreateCategorySelectMenu(CategoryHelpers.GetCategories(DeploymentDomainsHelpers.GetDeploymentDomains().First().AuthorityId))
            };

            return(View(viewModel));
        }
Пример #2
0
        public JsonResult GetCategories(int laId)
        {
            var categoryData = CategoryHelpers.GetCategories(laId);

            return(Json(categoryData, JsonRequestBehavior.AllowGet));
        }