Beispiel #1
0
        public async Task <IActionResult> CheckSpotifyForConnection()
        {
            PartyGoer user = new PartyGoer(User.FindFirstValue(ClaimTypes.NameIdentifier));

            string deviceName = await _partyGoerService.GetUsersActiveDeviceAsync(user.Id);

            return(new JsonResult(new { DeviceName = deviceName }));
        }
Beispiel #2
0
        public async Task <IActionResult> CheckSpotifyForConnection()
        {
            string deviceName = await _partyGoerService.GetUsersActiveDeviceAsync((await _partyGoerService.GetCurrentPartyGoerAsync()).GetId());

            return(new JsonResult(new { DeviceName = deviceName }));
        }