예제 #1
0
        public async Task <IEnumerable <TreeNode <SearchTvShowViewModel> > > Trending()
        {
            var result = await MemCache.GetOrAdd(CacheKeys.TrendingTv, async() => await TraktApi.GetTrendingShows(), DateTime.Now.AddHours(12));

            var processed = await ProcessResults(result);

            return(processed.Select(ParseIntoTreeNode).ToList());
        }