コード例 #1
0
        public ActionResult GetSiteAddressEN(string cond)
        {
            ObjectResultData res = new ObjectResultData();

            try
            {
                IAutoCompleteHandler   hand = ServiceContainer.GetService <IAutoCompleteHandler>() as IAutoCompleteHandler;
                List <dtSiteAddressEN> lst  = hand.GetSiteAddressEN(cond);

                List <string> strList = new List <string>();
                foreach (var l in lst)
                {
                    strList.Add(l.AddressEN);
                }
                res.ResultData = strList;
            }
            catch (Exception ex)
            {
                res.AddErrorMessage(ex);
            }
            return(Json(res));
        }