public async Task <IEnumerable <PhoneBookAggregateRoot> > HandleAsync(GetPhoneBooksQuery query) { return(await _phoneBookRepository.GetPhoneBooksAsync()); }
public async Task <IEnumerable <PhoneBook> > Index() { return(await _phoneBookRepository.GetPhoneBooksAsync()); }