Пример #1
0
 public bool Insertar(SistemasBE e_Sistemas)
 {
     try
     {
         SistemasDA o_Sistemas = new SistemasDA(m_BaseDatos);
         int        resp       = o_Sistemas.Insertar(e_Sistemas);
         return(resp > 0);
     }
     catch (Exception ex)
     {
         throw new Exception("Clase Business: " + Nombre_Clase + "\r\n" + "Descripción: " + ex.Message);
     }
 }
Пример #2
0
        public List <SistemasBE> Consultar_PK(int m_SistemaId)
        {
            List <SistemasBE> lista = new List <SistemasBE>();

            try
            {
                SistemasDA o_Sistemas = new SistemasDA(m_BaseDatos);
                return(o_Sistemas.Consultar_PK(m_SistemaId));
            }
            catch (Exception ex)
            {
                throw new Exception("Clase Business: " + Nombre_Clase + "\r\n" + "Descripción: " + ex.Message);
            }
        }
Пример #3
0
        public bool Insertar(SistemasBE e_Sistemas, ref String out_sms_err)
        {
            if (ValidarActualizar(e_Sistemas, ref out_sms_err) == false)
            {
                return(false);
            }

            try
            {
                SistemasDA sistemasDA = new SistemasDA();
                int        resp       = sistemasDA.Insertar(e_Sistemas);
                return(resp > 0);
            }
            catch (Exception ex)
            {
                throw new Exception("Clase Business: " + Nombre_Clase + "\r\n" + "Descripción: " + ex.Message);
            }
        }