자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public IActionResult ArticleDetail(int Id) { Article article = articleRepository.getArticleById(Id); List <Comment> comments = commentRepository.getCommentsByArticleId(Id).ToList(); articleRepository.AddViewById(Id); ViewBag.Article = article; ViewBag.Comments = comments; return(View()); }