Esempio n. 1
0
        public static string GetCities(string searchterm)
        {
            JavaScriptSerializer jss = new JavaScriptSerializer();

            ISearchManager searchmanager = SearchManagerFactory.GetInstance().Create();

            return(jss.Serialize(searchmanager.GetCities().Where(e => e.Name.ToLower().Contains(searchterm))));
        }