public decimal BasketTotal() { var subtotal = BooksInBasket.Sum(x => x.Price); var discountAmount = _discountCalculator.CalculateDiscountAmount(BooksInBasket); return(subtotal - discountAmount); }
public decimal BasketTotal() { var subtotal = BooksInBasket.Sum(x => x.Price); var discountAmount = _discountCalculator.CalculateDiscountAmount(BooksInBasket); return(subtotal - discountAmount); }