public ActionResult Configuration(int id = 0) { if (id == 0) { return(HttpNotFound()); } var menuVMs = RoleManagement.GetPagesForSelectedRole(id).ToList(); ViewBag.RoleID = id; ViewBag.RoleName = RoleManagement.GetRoleNameById(id); return(View(menuVMs)); }