public void Create(DataModel.Contexts.OrderCreate order, Action <ApiResponse <DataModel.Order> > callback) { UriBuilder uriBuilder = this.client.GetUriBuilder("/orders/"); this.client.DoPostRequest(uriBuilder.Uri, order, callback); }
public async Task <DataModel.Order> Create(DataModel.Contexts.OrderCreate order) { UriBuilder uriBuilder = this.client.GetUriBuilder("/orders/"); return(await this.client.DoPostRequest <DataModel.Order, DataModel.Contexts.OrderCreate>(uriBuilder.Uri, order).ConfigureAwait(false)); }