Exemplo n.º 1
0
        public async Task <IActionResult> UnfavoriteTrackAsync(string trackId)
        {
            try
            {
                PartyGoer user = await _partyGoerService.GetCurrentPartyGoerAsync();

                await _partyGoerService.UnfavoriteTrackAsync(user, trackId);

                return(Ok());
            }
            catch (Exception ex)
            {
                await _logService.LogExceptionAsync(ex, $"Error occurred while user was trying to unfavorite song {trackId}");

                return(StatusCode(500));
            }
        }