public async Task <AddressResult> Search(string postalCode) { Debug.WriteLine(postalCode); try { var result = await _parent.Search(postalCode); Debug.WriteLine(result); return(result); } catch (Exception ex) { Debug.WriteLine(ex); throw; } }
private async void button1_Click(object sender, EventArgs e) { AddressResult = await _addressSearchService.Search(input.Text); }