示例#1
0
        public List <PruebaBE> ConsultarPruebas(int idPrueba)
        {
            PruebaDL        pru     = new PruebaDL();
            List <PruebaBE> pruebas = new List <PruebaBE>();

            try
            {
                pruebas = pru.ConsultarPruebas(idPrueba);
            }
            catch (Exception ex)
            {
            }
            return(pruebas);
        }
示例#2
0
        public int ModificarPrueba(PruebaBE prueba)
        {
            PruebaDL pru  = new PruebaDL();
            int      resp = 0;

            try
            {
                resp = pru.ModificarPrueba(prueba);
            }
            catch (Exception ex)
            {
                //guardar exepcion en el log de bd
                resp = -1;
            }

            return(resp);
        }
示例#3
0
        public long CrearPrueba(PruebaBE prueba)
        {
            PruebaDL pru  = new PruebaDL();
            long     resp = 0;

            try
            {
                resp = pru.GuardarPruebaBE(prueba);
            }
            catch (Exception ex)
            {
                //guardar exepcion en el log de bd
                resp = -1;
            }

            return(resp);
        }