Esempio n. 1
0
        public async Task <object> Post(GetTrailerRemoteSearchResults request)
        {
            var result = await _providerManager.GetRemoteSearchResults <Trailer, TrailerInfo>(request, CancellationToken.None).ConfigureAwait(false);

            return(ToOptimizedResult(result));
        }
        public object Post(GetTrailerRemoteSearchResults request)
        {
            var result = _providerManager.GetRemoteSearchResults <Trailer, TrailerInfo>(request, CancellationToken.None).Result;

            return(ToOptimizedResult(result));
        }