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)); }
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)); }