public async Task <IActionResult> Dissociate(int poolId) { string userEmail = User.FindFirst(ClaimTypes.Email).Value; User user = await userManager.FindByEmailAsync(userEmail); poolService.Dissociate(poolId, user); return(Ok(new { message = $"no device associated to pool {poolId}" })); }