public Search[] AjaxSearch(string query) { BookRepository bRepo = new BookRepository(_dal); string q = query.Filter(@"%\^#").Escape().Trim(); Search[] terms = bRepo.LiveSearch(q); return terms; }