public IActionResult DeleteRole(Role role) { var deleteRole = new ManageRoles(); if (deleteRole.DeleteRoleById(role)) { return RedirectToAction("ListRoles", "Administration"); } else { ModelState.AddModelError("All", "Edit role unsusccesful"); return View(); } }