public IViewComponentResult Invoke(int id) { List <Article> articles = articleRep.GetArticlesByTopicId(id); return(View(articles)); }
public IActionResult FilteredArticles(int topicId) { List <Article> articles = articleRep.GetArticlesByTopicId(topicId); return(View(articles)); }
public IActionResult ArticlesByTopics(int id) { var articles = articleRep.GetArticlesByTopicId(id); return(View(articles)); }