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 })); }
public async Task <IActionResult> CheckSpotifyForConnection() { string deviceName = await _partyGoerService.GetUsersActiveDeviceAsync((await _partyGoerService.GetCurrentPartyGoerAsync()).GetId()); return(new JsonResult(new { DeviceName = deviceName })); }