public async Task <IActionResult> AddUser([FromBody] RoleToUserDto dto) { dto.CurrentUserId = UserIdentity.UserId; bool res = await _roleService.AddUserAsync(dto); return(Ok(res)); }
public async Task <bool> AddUserAsync([FromBody] RoleToUserDto dto) { return(await _roleService.AddUserAsync(dto)); }