Clean-up
This commit is contained in:
parent
37715c3e27
commit
395e18f2e1
@ -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)
|
||||
{
|
||||
|
@ -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";
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ namespace Microsoft.eShopOnContainers.WebMVC.ViewModels
|
||||
|
||||
[Required]
|
||||
public Guid RequestId { get; set; }
|
||||
public string CouponCode { get; internal set; }
|
||||
|
||||
public void CardExpirationShortFormat()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user