Example #1
0
        public JsonResult LoadCustomerReceivers(string customerName)
        {
            string strErrText;
            DDSystem dd = new DDSystem();
            List<Receiver> listReceiver = dd.LoadCustomerReceivers(customerName, LoginAccountId, LoginStaffName, out strErrText);
            if (listReceiver == null)
            {
                throw new Exception(strErrText);
            }

            var ret = from r in listReceiver
                      select r.Name;

            return Json(ret, JsonRequestBehavior.AllowGet);
        }