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

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

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