// GET: Shelf/Edit/5 public IActionResult EditShelf(string id) { if (id == null) { return(NotFound()); } var shelf = ctx.FindShelf(id); if (shelf == null) { return(NotFound()); } var standShelfSize = ctx.GetStandardShellSize(1); ViewBag.StandardSize = new StandardSize { StandardFloor = standShelfSize.StandardFloor, StandardCell = standShelfSize.StandardCell }; return(View(shelf)); }