Formatting changes.

This commit is contained in:
David Britch 2017-04-19 17:08:53 +01:00
parent 00a44e1ea3
commit 6b97041d1d

View File

@ -20,7 +20,6 @@ namespace eShopOnContainers.Core.Services.Catalog
public async Task<ObservableCollection<CatalogItem>> FilterAsync(int catalogBrandId, int catalogTypeId) public async Task<ObservableCollection<CatalogItem>> FilterAsync(int catalogBrandId, int catalogTypeId)
{ {
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.CatalogEndpoint); UriBuilder builder = new UriBuilder(GlobalSetting.Instance.CatalogEndpoint);
builder.Path = string.Format("api/v1/catalog/items/type/{0}/brand/{1}", catalogTypeId, catalogBrandId); builder.Path = string.Format("api/v1/catalog/items/type/{0}/brand/{1}", catalogTypeId, catalogBrandId);
@ -34,12 +33,10 @@ namespace eShopOnContainers.Core.Services.Catalog
return catalog?.Data.ToObservableCollection(); return catalog?.Data.ToObservableCollection();
else else
return new ObservableCollection<CatalogItem>(); return new ObservableCollection<CatalogItem>();
} }
public async Task<ObservableCollection<CatalogItem>> GetCatalogAsync() public async Task<ObservableCollection<CatalogItem>> GetCatalogAsync()
{ {
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.CatalogEndpoint); UriBuilder builder = new UriBuilder(GlobalSetting.Instance.CatalogEndpoint);
builder.Path = "api/v1/catalog/items"; builder.Path = "api/v1/catalog/items";
@ -57,12 +54,10 @@ namespace eShopOnContainers.Core.Services.Catalog
} }
else else
return new ObservableCollection<CatalogItem>(); return new ObservableCollection<CatalogItem>();
} }
public async Task<ObservableCollection<CatalogBrand>> GetCatalogBrandAsync() public async Task<ObservableCollection<CatalogBrand>> GetCatalogBrandAsync()
{ {
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.CatalogEndpoint); UriBuilder builder = new UriBuilder(GlobalSetting.Instance.CatalogEndpoint);
builder.Path = "api/v1/catalog/catalogbrands"; builder.Path = "api/v1/catalog/catalogbrands";
@ -76,12 +71,10 @@ namespace eShopOnContainers.Core.Services.Catalog
return brands?.ToObservableCollection(); return brands?.ToObservableCollection();
else else
return new ObservableCollection<CatalogBrand>(); return new ObservableCollection<CatalogBrand>();
} }
public async Task<ObservableCollection<CatalogType>> GetCatalogTypeAsync() public async Task<ObservableCollection<CatalogType>> GetCatalogTypeAsync()
{ {
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.CatalogEndpoint); UriBuilder builder = new UriBuilder(GlobalSetting.Instance.CatalogEndpoint);
builder.Path = "api/v1/catalog/catalogtypes"; builder.Path = "api/v1/catalog/catalogtypes";
@ -95,7 +88,6 @@ namespace eShopOnContainers.Core.Services.Catalog
return types.ToObservableCollection(); return types.ToObservableCollection();
else else
return new ObservableCollection<CatalogType>(); return new ObservableCollection<CatalogType>();
} }
} }
} }