public ActionResult KeyWordsList(string term) // have to use parameter named 'term' { List <string> addresskeys = new List <string>(); List <string> cuisinekeys = new List <string>(); List <string> productkeys = new List <string>(); List <string> toppingkeys = new List <string>(); List <string> dressingkeys = new List <string>(); addresskeys = BizInfoRepository.GetBizAddressKeywords(true); cuisinekeys = BizCuisineRepository.GetCuisineKeywoods(true).Union(addresskeys).ToList(); toppingkeys = ProductToppingRepository.GetToppingKeywoods(true).Union(cuisinekeys).ToList(); dressingkeys = ProductDressingRepository.GetDressingKeywoods(true).Union(toppingkeys).ToList(); productkeys = ProductRepository.GetProductKeywoods(true).Union(dressingkeys).ToList(); productkeys.Distinct().ToList().Sort(); string[] keys = productkeys.ToArray(); return(this.Json(keys.Where(t => t.ToUpper().Contains(term.ToUpper())), JsonRequestBehavior.AllowGet)); }