public async Task ApplyCouponToBasket(Guid basketId, CouponForUpdate couponForUpdate) { client.SetBearerToken(await _httpContextAccessor.HttpContext.GetTokenAsync("access_token")); var response = await client.PutAsJson($"api/baskets/{basketId}/coupon", couponForUpdate); //return await response.ReadContentAs<Coupon>(); }
public async Task ApplyCouponToBasket(Guid basketId, CouponForUpdate couponForUpdate) { var response = await client.PutAsJson($"/api/baskets/{basketId}/coupon", couponForUpdate); //return await response.ReadContentAs<Coupon>(); }