public async Task <IActionResult> GetActiveDevices() { ServiceResult <List <Device> > devicesResult = await _partyGoerService.GetUserDevicesAsync(await _partyGoerService.GetCurrentPartyGoerAsync()); if (devicesResult.IsSuccessful()) { return(new JsonResult(devicesResult.Result)); } else { return(new JsonResult(new { Type = "Error", Message = "Unable to reach Spotify API, try again" })); } }