public async Task <Core.DataModel.Empty> UpdateConsents(string customerId, DataModel.Contexts.CustomerConsentUpdate udpate) { UriBuilder uriBuilder = this.client.GetUriBuilder(string.Format("/customers/{0}/consents", Uri.EscapeDataString(customerId))); return(await this.client.DoPutRequest <Core.DataModel.Empty, DataModel.Contexts.CustomerConsentUpdate>(uriBuilder.Uri, udpate).ConfigureAwait(false)); }
public void UpdateConsents(string customerId, DataModel.Contexts.CustomerConsentUpdate udpate, Action <ApiResponse <Core.DataModel.Empty> > callback) { UriBuilder uriBuilder = this.client.GetUriBuilder(string.Format("/customers/{0}/consents", UriBuilderExtension.EnsureEscapedDataString("customerId", customerId))); this.client.DoPutRequest(uriBuilder.Uri, udpate, callback); }