Beispiel #1
0
        public async Task <bool> AddNewSongToQueue(AddSongToQueueCommand request)
        {
            try
            {
                Party party = await _partyRepository.GetPartyWithCodeAsync(request.PartyCode);

                await party.AddTrackToQueueAsync(request);

                return(true);
            }
            catch (Exception ex)
            {
                await _logService.LogExceptionAsync(ex, "Error occured in AddNewSongToQueue");

                return(false);
            }
        }