public static bool ValidaEliminacionPropuestaEstado(DTO.PropuestaEstadoDTO thePropuestaEstadoDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idPropuestaEstado", SqlDbType.VarChar, 20, thePropuestaEstadoDTO.IdPropuestaEstado);

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

            return(resultado);
        }
Example #3
0
        public static bool Insert(DTO.PropuestaEstadoDTO myPropuestaEstadoDTO)
        {
            bool resultado = PropuestaEstadoDAL.Insert(myPropuestaEstadoDTO);

            return(resultado);
        }