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