public async Task <IActionResult> Edit(int id, [Bind("ID,FirstName,LastName,Address_1,Address_2,City,State,ZipCode,Neighborhood")] Customer customer) { if (id != customer.ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(customer); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CustomerExists(customer.ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(customer)); }