Пример #1
0
        public ActionResult Index(string SearchControllerName, string SearchModule)
        {
            var moduleControllerModel = new ModuleControllerModel();
            var moduleControllerList  = moduleControllerModel.GetListOfModuleControllers(true, false, SearchControllerName, SearchModule);

            return(View(moduleControllerList));
        }
Пример #2
0
        public ActionResult GetControllersForModule(string moduleId)
        {
            if (String.IsNullOrEmpty(moduleId))
            {
                throw new ArgumentNullException("moduleId");
            }

            var moduleControllerModel = new ModuleControllerModel();
            var controllerList        = moduleControllerModel.GetListOfModuleControllers(false, false);

            controllerList.RemoveAll(x => x.Module_Id != int.Parse(moduleId));

            var result = (from c in controllerList
                          select new
            {
                id = c.Module_Controller_Id,
                name = c.Module_Controller_Name
            }).ToList();

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