Esempio n. 1
0
        public JsonResult LoadDistance(string strReceiverName, string startCountry, string startProvince, string startCity)
        {
            string           strErrText;
            DDSystem         dd   = new DDSystem();
            ReceiverDistance data = dd.LoadReceiverDistance(strReceiverName, startCountry, startProvince, startCity, LoginAccountId, LoginStaffName, out strErrText);

            if (data == null)
            {
                return(Json(null, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(data.KM, JsonRequestBehavior.AllowGet));
            }
        }