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