//删除 public IActionResult Delete(int id) { //更新数据库 _roleAppService.DeleteDtoById(id); //重定向 return(RedirectToAction("Index", "Role")); }