Example #1
0
        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();
        }
Example #2
0
 public async Task Create(BasketPositionWriteModel basketPosition)
 {
     await this.basketWriteApiClient.Create(basketPosition);
 }