Felhasználó és szabály törlésének befejezése

This commit is contained in:
2025-04-10 13:37:39 +02:00
parent 7109da0d95
commit cd57fc46bc
16 changed files with 1218 additions and 39 deletions
@@ -21,5 +21,10 @@ namespace WorkFlowCheck.Web.Pages.UserAndRole
var results = await _userService.GetAllRoles();
return new JsonResult(new { data = results });
}
public async Task<JsonResult> OnGetDeleteRole(int id)
{
var isSuccess = await _userService.DeleteRole(id);
return new JsonResult(new { result = isSuccess });
}
}
}