Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 4791be9

Browse files
committed
Removed string.Format()s
1 parent 9ba0041 commit 4791be9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Mobile/eShopOnContainers/eShopOnContainers.Core/Services/Catalog/CatalogService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public CatalogService(IRequestProvider requestProvider, IFixUriService fixUriSer
2525
public async Task<ObservableCollection<CatalogItem>> FilterAsync(int catalogBrandId, int catalogTypeId)
2626
{
2727
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.BaseEndpoint);
28-
builder.Path = string.Format($"{ApiUrlBase}/items/type/{0}/brand/{1}", catalogTypeId, catalogBrandId);
28+
builder.Path = $"{ApiUrlBase}/items/type/{catalogTypeId}/brand/{catalogBrandId}";
2929
string uri = builder.ToString();
3030

3131
CatalogRoot catalog = await _requestProvider.GetAsync<CatalogRoot>(uri);

src/Mobile/eShopOnContainers/eShopOnContainers.Core/Services/Order/OrderService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public Task CreateOrderAsync(Models.Orders.Order newOrder, string token)
4444
{
4545
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.BaseEndpoint);
4646

47-
builder.Path = string.Format($"{ApiUrlBase}/{0}", orderId);
47+
builder.Path = $"{ApiUrlBase}/{orderId}";
4848

4949
string uri = builder.ToString();
5050

0 commit comments

Comments
 (0)