public async Task <AjaxResult> SetModules(RoleSetModuleDto dto)
 {
     return(await AjaxResult.Business(async() =>
     {
         OperationResult result = await _securityManager.SetRoleModules(dto.RoleId, dto.ModuleIds);
         return result.ToAjaxResult();
     }));
 }
Example #2
0
        public async Task <ActionResult> SetModules([FromBody] RoleSetModuleDto dto)
        {
            OperationResult result = await _securityManager.SetRoleModules(dto.RoleId, dto.ModuleIds);

            return(Json(result.ToAjaxResult()));
        }
Example #3
0
        public async Task <ActionResult> SetModules(RoleSetModuleDto dto)
        {
            OperationResult result = await _functionAuthorizationManager.SetRoleModules(dto.RoleId, dto.ModuleIds);

            return(Json(result.ToAjaxResult()));
        }