Esempio n. 1
0
        public static bool ValidaEliminacionListaNegra(DTO.ListaNegraDTO theListaNegraDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idListaNegra", SqlDbType.VarChar, 20, theListaNegraDTO.IdListaNegra);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionListaNegra", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
Esempio n. 2
0
        public static bool Update(DTO.ListaNegraDTO myListaNegraDTO)
        {
            bool resultado = ListaNegraDAL.Update(myListaNegraDTO);

            return(resultado);
        }
Esempio n. 3
0
        public static bool Insert(DTO.ListaNegraDTO myListaNegraDTO)
        {
            bool resultado = ListaNegraDAL.Insert(myListaNegraDTO);

            return(resultado);
        }