public JsonResult LoadDriver(long nId) { string strErrText; DDSystem dd = new DDSystem(); CarrierDriver data = dd.LoadDriver(nId, LoginAccountId, LoginStaffName, out strErrText); if (data == null) { throw new Exception(strErrText); } var ret = new { LicenseNo = data.LicenseNo, MobileTel = data.MobileTel, HomeTel = data.HomeTel, }; return(Json(ret, JsonRequestBehavior.AllowGet)); }