public JsonResult createSend(View_Repair model) { string statuscode = "200"; string msg = ""; if (ModelState.IsValid) { try { model.XXID = xxid; var name = oa.GetTeacherGH(new Guid(model.QTBX)).DisName; model.WXFK = name; model.LouCeng = "1"; model.BXRID = userid; model.Status = "1"; model.WXLBID = "1"; rp.CreateSend(model, names); } catch (Exception ex) { statuscode = "500"; msg = ex.ToString(); } } JsonResult rlt = new JsonResult { Data = new { statuscode, msg } }; return(Json(rlt, JsonRequestBehavior.AllowGet)); }