// GET: PermissionModule
        public ActionResult Index()
        {
            List <PermissionModule.PermissionModule> moduleList = _permissionModuleAppService.GetPermissionModuleList();

            ViewBag.PermissionModules = moduleList;
            return(View());
        }
        public ActionResult Permission(int id)
        {
            var roleModules           = _roleManagementAppService.GetRoleModules(id);
            RolePermissionModel model = new RolePermissionModel {
                RoleId               = id,
                RoleName             = _roleManagementAppService.GetRole(id).RoleName,
                PermissionModules    = roleModules,
                AllPermissionModules = _permissionModuleAppService.GetPermissionModuleList()
            };

            return(View(model));
        }