public List <PhoneBookModel> GetAll() { var list = _phoneBookRepo.GetList(_context); return(ToModel.ToPhoneBookModelList(list)); }
public async Task <ActionResult <IEnumerable <Entities.PhoneBook> > > GetPhoneBookList() { return(await _phoneBookRepository.GetList()); }
public List <Entry> GetPhoneBookEntries(string byName, string byPhoneNumber) { return(MapModelsToEntry(_phoneBookRepository.GetList(_context, byName, byPhoneNumber))); }