示例#1
0
        public async Task <object> Post(GetMusicArtistRemoteSearchResults request)
        {
            var result = await _providerManager.GetRemoteSearchResults <MusicArtist, ArtistInfo>(request, CancellationToken.None).ConfigureAwait(false);

            return(ToOptimizedResult(result));
        }
        public object Post(GetMusicArtistRemoteSearchResults request)
        {
            var result = _providerManager.GetRemoteSearchResults <MusicArtist, ArtistInfo>(request, CancellationToken.None).Result;

            return(ToOptimizedResult(result));
        }