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

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