public async Task <IActionResult> Edit(Guid id, [Bind("Height,Width,Depth,ID,Edition,Created,OwnerID,Name")] Rack binRack) { if (id != binRack.ID) { return(NotFound()); } if (ModelState.IsValid) { try { binRack.IncrementEdition(); _context.Update(binRack); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!RackExists(binRack.ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(binRack)); }