コード例 #1
0
        public ActionResult AutocompletePublisher(string term)
        {
            var publishers = publisherManager.GetPublisherList(Active.active);

            var filteredItems = publishers.Where(publisher => publisher.PublisherID.ToLower().Contains(term.ToLower())).ToList().ConvertAll(obj => obj.ToString());

            return(Json(filteredItems, JsonRequestBehavior.AllowGet));
        }