public IActionResult UpdateRole(string id) { RoleApp role = GetRoleById(id); if (role != null) { return(View(role.Adapt <RoleViewModel>())); } return(RedirectToAction("Roles")); }