Пример #1
0
        public JsonResult LoadDriversByCarNo(string strCarNo)
        {
            string strErrText;
            DDSystem dd = new DDSystem();
            List<CarrierDriver> listDriver = dd.LoadDriversByCarNo(strCarNo, LoginAccountId, LoginStaffName, out strErrText);
            if (listDriver == null)
            {
                throw new Exception(strErrText);
            }

            var ret = from d in listDriver
                      select new
                      {
                          d.Id,
                          d.Name
                      };

            return Json(ret, JsonRequestBehavior.AllowGet);
        }