public async Task <IEnumerable <PhoneBookDto> > GetBySurname([Required][FromHeader] string surname, [FromServices] IGetPhoneBookRecord getPhoneBookRecord) { return(await getPhoneBookRecord.GetPhoneBookBySurname(surname)); }
public async Task <IEnumerable <PhoneBookDto> > GetByPhoneNumber([Required][FromHeader] string phonenumber, [FromServices] IGetPhoneBookRecord getPhoneBookRecord) { return(await getPhoneBookRecord.GetPhoneBookByPhoneNumber(phonenumber)); }
public async Task <IEnumerable <PhoneBookDto> > GetAll([FromServices] IGetPhoneBookRecord getPhoneBookRecord) { return(await getPhoneBookRecord.GetAllPhoneBookEntries()); }