public JsonResult EditBackRepairSend(string Id, string fk) { var reid = new Guid(Id); string statuscode = "1"; string msg = ""; if (ModelState.IsValid) { try { rp.EditDealRepairFKSend(reid, fk); } catch (Exception ex) { statuscode = "0"; msg = ex.ToString(); } } JsonResult rlt = new JsonResult { Data = new { statuscode, msg } }; return(Json(rlt, JsonRequestBehavior.AllowGet)); }