Пример #1
0
        public async Task <IActionResult> Associate(int poolId, string deviceId)
        {
            string userEmail = User.FindFirst(ClaimTypes.Email).Value;
            User   user      = await userManager.FindByEmailAsync(userEmail);

            poolService.Associate(poolId, deviceId, user);
            return(Ok(new
            {
                poolId,
                deviceId
            }));
        }