Пример #1
0
        public async Task <IActionResult> GetFavoriteTracks()
        {
            try
            {
                PartyGoer partyGoer = await _partyGoerService.GetCurrentPartyGoerAsync();

                return(new JsonResult(await _partyGoerService.GetUsersFavoriteTracksAsync(partyGoer)));
            }
            catch (Exception ex)
            {
                await _logService.LogExceptionAsync(ex, "Error occurred in GetFavoriteTracks");

                return(StatusCode(500));
            }
        }