Exemple #1
0
 public ActionResult Approve(int id)
 {
     commentService.Accept(id);
     return(RedirectToAction(nameof(ApproveComment)));
 }
Exemple #2
0
        public async Task <IActionResult> Accept(int Id)
        {
            await _commentService.Accept(Id);

            return(RedirectToAction("List", "Comment"));
        }