Пример #1
0
        public PartialViewResult CboControllersPartial([ModelBinder(typeof(DevExpressEditorsBinder))] string controllerName)
        {
            ViewBag.ControllerName = controllerName;
            var model = new ControllerActionHelper().ControllerNames().ToList();

            return(PartialView(model));
        }
Пример #2
0
        public PartialViewResult CboActionsPartial([ModelBinder(typeof(DevExpressEditorsBinder))] string actionName, [ModelBinder(typeof(DevExpressEditorsBinder))] string controllerName)
        {
            ViewBag.ActionName     = actionName;
            ViewBag.ControllerName = controllerName;
            var model = new ControllerActionHelper().ActionNames(controllerName);

            return(PartialView(model));
        }
Пример #3
0
        public PartialViewResult TokenBoxActionsPartial([ModelBinder(typeof(DevExpressEditorsBinder))] IEnumerable <UserRolesInActions> userRolesInActions)
        {
            List <string> model = new ControllerActionHelper().ActionNames().ToList();

            model.AddRange(unitOfWork.ActionsRepo.Fetch().Select(x => x.Action));
            ViewBag.ActionNames = userRolesInActions;
            return(PartialView(model));
        }