1
0
mirror of https://github.com/rudollee/LearningMVC.git synced 2025-06-07 07:56:14 +00:00
wook 0eaa6708fe Ch. 6
EssentialTools
Ninject
2017-04-04 23:28:37 +09:00

24 lines
414 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EssentialTools.Models
{
public class ShoppingCart
{
private IValueCalculator calc;
public ShoppingCart(IValueCalculator calcParam)
{
calc = calcParam;
}
public IEnumerable<Product> Products { get; set; }
public decimal CalculatorProdutTotal()
{
return calc.ValueProducts(Products);
}
}
}