示例#1
0
        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)));
        }