public ActionResult Edit(DesignerView designer) { try { if (ModelState.IsValid) { JobCardManager manager = new JobCardManager(); manager.UpdateDesigner(designer); return(RedirectToAction("Index")); } return(View()); } catch { return(View()); } }