Beispiel #1
0
        public ActionResult Clear()
        {
            MyCart cart = MyCart.GetCart();

            cart.Clear();
            return(RedirectToAction("Index"));
        }
 private void buttonClear_Click(object sender, EventArgs e)
 {
     listBox1.Items.Clear();
     labelTotalPrice.Text = "0";
     _myCart.Clear();
 }