public IActionResult NewsFeed()
        {
            var userPermittedCategories            = editorService.GetUserCategories(httpContextAccessor).Select(c => int.Parse(c.Value)).ToArray();
            ICollection <RawArticleViewModel> news = externalNewsService.GetExternalNews(userPermittedCategories);

            return(View(news));
        }
Exemplo n.º 2
0
 public async Task <IActionResult> AddNewDraft()
 {
     ViewBag.ArticleCategories = editorService.GetUserCategories(httpContextAccessor);
     return(View(new AddArticleViewModel()));
 }