Example #1
0
        protected void Delete_Click(object sender, EventArgs e)
        {
            ClienteEN cli = new ClienteEN();

            cli = cli.sacarCliente(Session["Usuario"].ToString());
            CocheEN coche = new CocheEN();

            coche.SacarCoche(((ImageButton)sender).CommandArgument);
            CestaEN cesta = new CestaEN();

            cesta.SacarCesta(cli.nifCliente);
            cesta.DeleteCoche(coche);
            cesta.Actualizar();
        }