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

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

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