Browse Source

Formatting changes.

pull/223/head
David Britch 7 years ago
parent
commit
7d3a0db546
1 changed files with 5 additions and 7 deletions
  1. +5
    -7
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Services/Basket/BasketService.cs

+ 5
- 7
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Services/Basket/BasketService.cs View File

@ -16,8 +16,7 @@ namespace eShopOnContainers.Core.Services.Basket
}
public async Task<CustomerBasket> GetBasketAsync(string guidUser, string token)
{
{
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.BasketEndpoint);
builder.Path = guidUser;
@ -30,18 +29,17 @@ namespace eShopOnContainers.Core.Services.Basket
ServicesHelper.FixBasketItemPictureUri(basket?.Items);
return basket;
}
public async Task<CustomerBasket> UpdateBasketAsync(CustomerBasket customerBasket, string token)
{
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.BasketEndpoint);
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.BasketEndpoint);
string uri = builder.ToString();
string uri = builder.ToString();
var result = await _requestProvider.PostAsync(uri, customerBasket, token);
var result = await _requestProvider.PostAsync(uri, customerBasket, token);
return result;
return result;
}
public async Task ClearBasketAsync(string guidUser, string token)


Loading…
Cancel
Save