Exemple #1
0
        private async Task <IEnumerable <ArticleView> > GetArticleViewsAsync(string section = "")
        {
            var articles = await _httpClientService.GetArticlesAsync(section);

            var articleViews = articles.Select(x => new ArticleView
            {
                Heading = x.Title,
                Updated = x.UpdatedDate,
                Link    = x.ShortUrl
            });

            return(articleViews);
        }