public decimal GetDiscountPrice(Product p) { var discount = _discountRepository.GetDiscountForType( p.DiscountType, p.ProductType); return(_discountStrategy.DiscountProduct(p, discount)); }