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()); }