Removed string.Format()s

This commit is contained in:
Marcos Cobeña Morián 2018-03-23 10:26:02 +01:00
parent 9ba004187d
commit 4791be9298
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ namespace eShopOnContainers.Core.Services.Catalog
public async Task<ObservableCollection<CatalogItem>> FilterAsync(int catalogBrandId, int catalogTypeId)
{
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.BaseEndpoint);
builder.Path = string.Format($"{ApiUrlBase}/items/type/{0}/brand/{1}", catalogTypeId, catalogBrandId);
builder.Path = $"{ApiUrlBase}/items/type/{catalogTypeId}/brand/{catalogBrandId}";
string uri = builder.ToString();
CatalogRoot catalog = await _requestProvider.GetAsync<CatalogRoot>(uri);

View File

@ -44,7 +44,7 @@ namespace eShopOnContainers.Core.Services.Order
{
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.BaseEndpoint);
builder.Path = string.Format($"{ApiUrlBase}/{0}", orderId);
builder.Path = $"{ApiUrlBase}/{orderId}";
string uri = builder.ToString();