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