public JsonResult LoadCarrier(string carrierId) { string strErrText; DDSystem dd = new DDSystem(); Carrier data = dd.LoadCarrier(long.Parse(carrierId), LoginAccountId, LoginStaffName, out strErrText); if (data == null) { return(Json(null, JsonRequestBehavior.AllowGet)); } else { var ret = new { Id = data.Id, Name = data.Name, BusinessType = data.BusinessType, PaymentType = data.PaymentType }; return(Json(ret, JsonRequestBehavior.AllowGet)); } }