public async Task <AddressCodeResult> FindAsync(ZipCodeUf uf, string city, string address) { if (AddressCode.TryParse(uf, city, address, out AddressCode addressCode)) { return(await FindAsync(addressCode)); } throw new AddressCodeException(); }
public AddressCodeResult Find(ZipCodeUf uf, string city, string address) { if (AddressCode.TryParse(uf, city, address, out AddressCode addressCode)) { return(Find(addressCode)); } throw new AddressCodeException(); }