public JsonResult AutoCompleteCity(string term) { var svc = new GeoCityAppService(); var lst = svc.GetGeoCityByTerm(term); var result = new List<SearchCityViewModel>(); foreach (var p in lst){ var s = new SearchCityViewModel(); s.GeoCityId = p.GeoCityId; var name = string.Format("{0} ({1}-{2})", p.Name, p.GeoState.Name, p.GeoState.GeoCountry.Name); s.Name = name; result.Add(s); } var res = this.Json(result, JsonRequestBehavior.AllowGet); return res; }