public ActionResult Edit(int id, Customer customer) { try { // TODO: Add update logic here db.Edit(customer); return(RedirectToAction("Index")); } catch { return(View(customer)); } }