This commit is contained in:
Chris Witte 2021-04-23 12:30:27 -05:00
parent 37715c3e27
commit 395e18f2e1
4 changed files with 1 additions and 6 deletions

View File

@ -13,7 +13,6 @@ namespace Microsoft.eShopOnContainers.WebMVC.Controllers
{
private IOrderingService _orderSvc;
private IBasketService _basketSvc;
private ICouponService _couponSvc;
private readonly IIdentityParser<ApplicationUser> _appUserParser;
public OrderController(IOrderingService orderSvc, IBasketService basketSvc, IIdentityParser<ApplicationUser> appUserParser)
{

View File

@ -18,14 +18,12 @@ namespace Microsoft.eShopOnContainers.WebMVC.Services
private readonly ILogger<BasketService> _logger;
private readonly string _basketByPassUrl;
private readonly string _purchaseUrl;
private ICouponService _couponSvc;
public BasketService(HttpClient httpClient, IOptions<AppSettings> settings, ILogger<BasketService> logger, ICouponService couponService)
public BasketService(HttpClient httpClient, IOptions<AppSettings> settings, ILogger<BasketService> logger)
{
_apiClient = httpClient;
_settings = settings;
_logger = logger;
_couponSvc = couponService;
_basketByPassUrl = $"{_settings.Value.PurchaseUrl}/b/api/v1/basket";
_purchaseUrl = $"{_settings.Value.PurchaseUrl}/api/v1";

View File

@ -15,7 +15,6 @@ namespace Microsoft.eShopOnContainers.WebMVC.ViewModels
public decimal Total()
{
// What is we apply the discount here
return Math.Round(Items.Sum(x => x.UnitPrice * x.Quantity), 2);
}
}

View File

@ -61,7 +61,6 @@ namespace Microsoft.eShopOnContainers.WebMVC.ViewModels
[Required]
public Guid RequestId { get; set; }
public string CouponCode { get; internal set; }
public void CardExpirationShortFormat()
{