public ActionResult edittype(tbljobType model) { jobServices _services = new jobServices(); var msg = _services.UpdatejobType(model.Description, model.Name, model.Id, model.IsActive.Value); if (msg.Contains("Error")) { ViewData["error"] = msg; return(View(model)); } else { TempData["error"] = msg; return(RedirectToAction("JobTypeList")); } }