public PhoneBookDTO GetEntryById(int entryId) { var book = repo.FindByID(entryId); if (book == null) { throw new Exception("not found"); } return(repo.FindByID(entryId).ToDTO()); }