public ActionResult Edit(CustomerView customer) { try { if (ModelState.IsValid) { JobCardManager manager = new JobCardManager(); manager.UpdateCustomer(customer); return(RedirectToAction("Index")); } return(View()); } catch { return(View()); } }