Formatting changes.

This commit is contained in:
David Britch 2017-04-20 16:06:06 +01:00
parent a01fa383a7
commit 7d3a0db546

View File

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