Exemplo n.º 1
0
 public override List <Entidad> ejecutar()
 {
     try
     {
         IDAOReservaAutomovil reservaAutomovilDao = FabricaDAO.ReservaAutomovilBD();
         return(reservaAutomovilDao.Consultar(this._objeto));
     }
     catch (NotImplementedException)
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public override bool ejecutar()
 {
     try
     {
         IDAOReservaAutomovil reservaDao = FabricaDAO.ReservaAutomovilBD();
         reservaDao.Eliminar(this._objeto);
         return(true);
     }
     catch (NotImplementedException)
     {
         throw;
     }
 }
Exemplo n.º 3
0
        public override bool ejecutar()
        {
            try
            {
                IDAOReservaAutomovil restaurantDao = FabricaDAO.ReservaAutomovilBD();
                restaurantDao.Modificar(this._objeto);
                return(true);
            }
            catch (NotImplementedException)
            {
                //throw;
            }

            return(true);
        }
Exemplo n.º 4
0
        public override List <Entidad> ejecutar()
        {
            try
            {
                System.Diagnostics.Debug.WriteLine("LLEGA A EJECUTAR");
                CVistaReservaAuto obj = (CVistaReservaAuto)_objeto;
                System.Diagnostics.Debug.WriteLine("ATRIBUTOS DEL OBJETO ---- idorigen: " + obj._ciudadOrigen + ", iddestino: " + obj._ciudadDestino + ", fechaini: " + obj._fechaini + ", fechafin: " + obj._fechafin + ", horaini: " + obj._horaIni + ", horafin: " + obj._horaFin);


                IDAOReservaAutomovil reservaAutomovilDao = FabricaDAO.ReservaAutomovilBD();
                return(reservaAutomovilDao.ConsultarAutosPorIdCiudades(this._objeto));
            }
            catch (NotImplementedException)
            {
                throw;
            }
        }
Exemplo n.º 5
0
 public override Entidad ejecutar()
 {
     try
     {
         IDAOReservaAutomovil reservaAutomovilDao = FabricaDAO.ReservaAutomovilBD();
         return(reservaAutomovilDao.consultarReservaId(this._objeto));
     }
     catch (NotImplementedException)
     {
         // exception implementada debido a que puede darse el caso
         // en que algunos de los metodos  en la
         //interfaz IDAO no se implemente y se lance esta excepcion
         throw;
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 6
0
 public override bool ejecutar()
 {
     try
     {
         System.Diagnostics.Debug.WriteLine("LLEGA A EJECUTAR");
         IDAOReservaAutomovil reservaAutomovilDao = FabricaDAO.ReservaAutomovilBD();
         reservaAutomovilDao.Crear(this._objeto);
         return(true);
     }
     catch (NotImplementedException)
     {
         // exception implementada debido a que puede darse el caso
         // en que algunos de los metodos de implementados en la
         //interfaz IDAO no se implemente y se lance esta excepcion
         throw;
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 7
0
        public override List <Entidad> ejecutar()
        {
            try
            {
                IDAOReservaAutomovil reservaDao = FabricaDAO.ReservaAutomovilBD();
                return(reservaDao.ListarLugar());
            }
            catch (NotImplementedException)
            {
                // exception implementada debido a que puede darse el caso
                // en que algunos de los metodos  en la
                //interfaz IDAO no se implemente y se lance esta excepcion

                throw;
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("La exception arrojada es " + e);
                throw;
            }
        }