コード例 #1
0
        public ActionResult Index()
        {
            ShopingCart cart = new ShopingCart(calc)
            {
                Products = products
            };

            decimal totalValue = cart.CalculateProductsTotal();

            return(View(totalValue));
        }