protected void lbBoxer_Click(object sender, EventArgs e) { CarroDeCompras carrito = CarroDeCompras.CapturarProducto(); carrito.Agregar(5); Response.Redirect("VerCarrito.aspx"); }
// GET: PedidoCliente/Create public ActionResult Create(int id) { CarroDeCompras carrito = CarroDeCompras.CapturarProducto(); carrito.Agregar(id); return(RedirectToAction("Index")); }
protected void AgregarProductos(int id) { CarroDeCompras carrito = CarroDeCompras.CapturarProducto(); carrito.Agregar(id); }