public JsonResult EditJobDetails(JobDetailsModel jp) { var res = ""; try { string jsr = mps.EditJobDetails(jp); return(Json((new JavaScriptSerializer()).DeserializeObject(jsr), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { res = ex.Message.ToString(); return(Json(res, JsonRequestBehavior.AllowGet)); } }