Ejemplo n.º 1
0
        public async Task <Results <List <string> > > AutoCompleteKeywordsAsync(string term, int resultsCount)
        {
            var results = new Results <List <string> >();

            try
            {
                results.Data = await _documentContext.AutoCompleteKeywordsAsync(term, resultsCount);
            }
            catch (Exception e)
            {
                results.AddException(new Exception("Failed to autocomplete keywords.", e));
            }

            return(results);
        }