Esempio n. 1
0
    protected void lbBoxer_Click(object sender, EventArgs e)
    {
        CarroDeCompras carrito = CarroDeCompras.CapturarProducto();

        carrito.Agregar(5);
        Response.Redirect("VerCarrito.aspx");
    }
Esempio n. 2
0
        // GET: PedidoCliente/Create
        public ActionResult Create(int id)
        {
            CarroDeCompras carrito = CarroDeCompras.CapturarProducto();

            carrito.Agregar(id);

            return(RedirectToAction("Index"));
        }
Esempio n. 3
0
    protected void AgregarProductos(int id)
    {
        CarroDeCompras carrito = CarroDeCompras.CapturarProducto();

        carrito.Agregar(id);
    }