public async Task <IActionResult> Post([FromBody] PoolCreationDto model) { string userEmail = User.FindFirst(ClaimTypes.Email).Value; User user = await userManager.FindByEmailAsync(userEmail); Pool pool = poolService.Add(model, user); return(Ok(mapper.Map <PoolDto>(pool))); }