public ActionResult Approve(int id) { commentService.Accept(id); return(RedirectToAction(nameof(ApproveComment))); }
public async Task <IActionResult> Accept(int Id) { await _commentService.Accept(Id); return(RedirectToAction("List", "Comment")); }