コード例 #1
0
        public IViewComponentResult Invoke(int id)
        {
            List <Article> articles = articleRep.GetArticlesByTopicId(id);

            return(View(articles));
        }
コード例 #2
0
        public IActionResult FilteredArticles(int topicId)
        {
            List <Article> articles = articleRep.GetArticlesByTopicId(topicId);

            return(View(articles));
        }
コード例 #3
0
        public IActionResult ArticlesByTopics(int id)
        {
            var articles = articleRep.GetArticlesByTopicId(id);

            return(View(articles));
        }