Пример #1
0
 public ActionResult ZipCodes(string term) // have to use parameter named 'term'
 {
     string[] zip = BizInfoRepository.GetAllZipCodes(true).ToArray();
     return(this.Json(zip.Where(t => t.StartsWith(term)), JsonRequestBehavior.AllowGet));
 }