public async Task Create(BasketPositionWriteModel basketPosition) { HttpClient httpClient = this.CreateHttpClient(); StringContent content = new StringContent(JsonConvert.SerializeObject(basketPosition), Encoding.UTF8, "application/json"); HttpResponseMessage response = await httpClient.PostAsync("/api/basket", content); response.EnsureSuccessStatusCode(); }
public async Task Create(BasketPositionWriteModel basketPosition) { await this.basketWriteApiClient.Create(basketPosition); }