Exemplo n.º 1
0
        public void AddCoche(CocheEN coche)
        {
            CestaCAD aux = new CestaCAD();

            coches.Add(coche);
            precio += coche.Precio;
        }
Exemplo n.º 2
0
        public bool Borrar()
        {
            CestaCAD aux    = new CestaCAD();
            bool     delete = aux.Borrar(this);

            return(delete);
        }
Exemplo n.º 3
0
        public bool Insertar()
        {
            CestaCAD aux    = new CestaCAD();
            bool     insert = aux.Insertar(this);

            return(insert);
        }
Exemplo n.º 4
0
        public void SacarCesta(string id)
        {
            CestaCAD cesta    = new CestaCAD();
            CestaEN  cestaAux = new CestaEN();

            cestaAux       = cesta.SacarCesta(id);
            this.idCliente = cestaAux.idCliente;
            this.coches    = cestaAux.coches;
            this.precio    = cestaAux.precio;
        }
Exemplo n.º 5
0
        //inserta un elemento en la cesta y la actualiza
        public bool insertarActualizarCesta()
        {
            CestaCAD cesta = new CestaCAD(this);

            return(cesta.insertarActualizarCesta());
        }
Exemplo n.º 6
0
        //borra un elemento de la cesta
        public bool borrarCesta()
        {
            CestaCAD cesta = new CestaCAD(this);

            return(cesta.borrarCesta());
        }
Exemplo n.º 7
0
        public bool Actualizar()
        {
            CestaCAD aux = new CestaCAD();

            return(aux.Actualizar(this));
        }