Example #1
0
        public static bool ValidaEliminacionDirectiva(DTO.DirectivaDTO theDirectivaDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idDirectiva", SqlDbType.VarChar, 20, theDirectivaDTO.IdDirectiva);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionDirectiva", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
Example #2
0
        public static bool Update(DTO.DirectivaDTO myDirectivaDTO)
        {
            bool resultado = DirectivaDAL.Update(myDirectivaDTO);

            return(resultado);
        }
Example #3
0
        public static bool Insert(DTO.DirectivaDTO myDirectivaDTO)
        {
            bool resultado = DirectivaDAL.Insert(myDirectivaDTO);

            return(resultado);
        }