// GET: RoleMenus/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RoleMenu roleMenu = _roleMenuService.Find(id); if (roleMenu == null) { return(HttpNotFound()); } return(View(roleMenu)); }