Пример #1
0
        public ActionResult GetSiteAlleyEN(string cond)
        {
            ObjectResultData res = new ObjectResultData();

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

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