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

            var processed = await ProcessResults(result);

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