protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); CitySearchService.Load(); CitySearchServiceBTree.Load(); }
public ContentResult CitiesBTree(string searchCity, string searchCountry) { String result = JsonConvert.SerializeObject(CitySearchServiceBTree.SearchForCities(searchCity)); return(Content(result, "application/json")); //localhost:49492/Home/CitiesBTree?searchCity=cac&searchCountry=US // return }