public ActionResult Index() { ShopingCart cart = new ShopingCart(calculator) { Products = products }; decimal totalValue = cart.CalculateProductTotal(); return(View(totalValue)); }
public ActionResult Index() { ShopingCart cart = new ShopingCart(calculator) { Products = products }; decimal totalValue = cart.CalculateProductTotal(); return(View(totalValue)); }