public ActionResult Edit(JobTypeView jobType) { try { if (ModelState.IsValid) { JobCardManager manager = new JobCardManager(); manager.UpdateJobType(jobType); return(RedirectToAction("Index")); } return(View(jobType)); } catch { return(View()); } }