예제 #1
0
        public async Task <IActionResult> GetArticleComments(int articleId)
        {
            if (await _articlesRepo.GetArticle(articleId) == null)
            {
                return(NotFound());
            }

            var comments = await _articlesRepo.GetArticleComments(articleId);

            return(Ok(comments));
        }