예제 #1
0
 public IActionResult LikeComment(int id)
 {
     if (ModelState.IsValid)
     {
         var model = new CommentModel();
         model.LikeComment(id);
         return(RedirectToAction("Index"));
     }
     return(RedirectToAction("Index"));
 }