public async Task <Domain.SmartPlaylist> GetSmartPlaylistAsync(Guid smartPlaylistId)
        {
            var smartPlaylistDto =
                await _smartPlaylistStore.GetSmartPlaylistAsync(smartPlaylistId).ConfigureAwait(false);

            return(SmartPlaylistAdapter.Adapt(smartPlaylistDto));
        }
Ejemplo n.º 2
0
        public async Task <SmartPlaylistDto> GetSmartPlaylistAsync(Guid smartPlaylistId)
        {
            var dto = await _decorated.GetSmartPlaylistAsync(smartPlaylistId).ConfigureAwait(false);

            CleanupSmartPlaylist(dto);

            return(dto);
        }
        public async Task <SmartPlaylistDto> GetSmartPlaylistAsync(Guid smartPlaylistId)
        {
            SmartPlaylistDto smartPlaylistDto = null;

            using (PerfLogger.Create("GetSmartPlaylistFromStore", () => new { smartPlaylistName = smartPlaylistDto?.Name }))
            {
                smartPlaylistDto = await _decorated.GetSmartPlaylistAsync(smartPlaylistId).ConfigureAwait(false);

                return(smartPlaylistDto);
            }
        }