* ardalis/cart-updates Updating how items are added to cart and displayed in cart. * Cleaning up UI
21 lines
534 B
C#
21 lines
534 B
C#
using ApplicationCore.Interfaces;
|
|
using Microsoft.eShopWeb;
|
|
|
|
namespace ApplicationCore.Services
|
|
{
|
|
public class UriComposer : IUriComposer
|
|
{
|
|
private readonly CatalogSettings _catalogSettings;
|
|
|
|
public UriComposer(CatalogSettings catalogSettings)
|
|
{
|
|
_catalogSettings = catalogSettings;
|
|
}
|
|
public string ComposePicUri(string uriTemplate)
|
|
{
|
|
return uriTemplate.Replace("http://catalogbaseurltobereplaced", _catalogSettings.CatalogBaseUrl);
|
|
|
|
}
|
|
}
|
|
}
|