Esempio n. 1
0
        public void PopulateCompanies()
        {
            HierarchyController           hierarchyController = new HierarchyController();
            IQueryable <CompanyViewModel> companyViewModels   = hierarchyController.GetAllCompanies();

            ViewData["companyViewModels"] = companyViewModels;
        }
Esempio n. 2
0
        public ActionResult CompanyRead([DataSourceRequest] DataSourceRequest request)
        {
            HierarchyController hierarchyController = new HierarchyController();

            return(Json(hierarchyController.GetAllCompanies().ToDataSourceResult(request)));
        }
Esempio n. 3
0
        public void PopulateCompanies()
        {
            var hierarchyController = new HierarchyController();
            IEnumerable<CompanyViewModel> companyViewModels = hierarchyController.GetAllCompanies();

            ViewData["companies"] = companyViewModels;
        }
Esempio n. 4
0
 public ActionResult CompanyRead([DataSourceRequest] DataSourceRequest request)
 {
     HierarchyController hierarchyController = new HierarchyController();
     return Json(hierarchyController.GetAllCompanies().ToDataSourceResult(request));
 }