public async Task <DataModel.Customer> Update(string customerId, DataModel.Contexts.CustomerUpdate customer) { UriBuilder uriBuilder = this.client.GetUriBuilder(string.Format("/customers/{0}", Uri.EscapeDataString(customerId))); return(await this.client.DoPutRequest <DataModel.Customer, DataModel.Contexts.CustomerUpdate>(uriBuilder.Uri, customer).ConfigureAwait(false)); }
public void Update(string customerId, DataModel.Contexts.CustomerUpdate customer, Action <ApiResponse <DataModel.Customer> > callback) { UriBuilder uriBuilder = this.client.GetUriBuilder(string.Format("/customers/{0}", Uri.EscapeDataString(customerId))); this.client.DoPutRequest(uriBuilder.Uri, customer, callback); }