public PartialViewResult CboControllersPartial([ModelBinder(typeof(DevExpressEditorsBinder))] string controllerName) { ViewBag.ControllerName = controllerName; var model = new ControllerActionHelper().ControllerNames().ToList(); return(PartialView(model)); }
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)); }
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)); }