Beispiel #1
0
        public static bool ValidaEliminacionVotacionPropuestaRespuesta(DTO.Propuesta.VotacionPropuestaRespuestaDTO theVotacionPropuestaRespuestaDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@pIdVotacionPropuestaRespuesta", SqlDbType.VarChar, 20, theVotacionPropuestaRespuestaDTO.TheVotacionPropuestaDTO.IdVotacionPropuesta);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionVotacionPropuestaRespuesta", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
Beispiel #2
0
        public static bool Insert(DTO.Propuesta.VotacionPropuestaRespuestaDTO myVotacionPropuestaRespuestaDTO)
        {
            bool resultado = VotacionPropuestaRespuestaDAL.Insert(myVotacionPropuestaRespuestaDTO);

            return(resultado);
        }
Beispiel #3
0
        public static bool Delete(DTO.Propuesta.VotacionPropuestaRespuestaDTO myVotacionPropuestaRespuestaDTO)
        {
            bool resultado = VotacionPropuestaRespuestaDAL.Delete(myVotacionPropuestaRespuestaDTO);

            return(resultado);
        }