コード例 #1
0
        public async Task <List <AutoCompleteItem> > GetDirectorsByTerm(string term)
        {
            var directors = await _repository.GetDirectorsByTerm(term, 5);

            return(directors.Select(d => new AutoCompleteItem
            {
                Label = d.Name,
                Value = d.Id
            }).ToList());
        }