Exemple #1
0
        public IActionResult AddComment(ArticlesViewModel articlesViewModel)
        {
            if (ModelState.IsValid)
            {
                _articleRepository.AddCommentOnArticle(articlesViewModel);
            }

            return(RedirectToAction("Index"));
        }