public static bool ValidaEliminacionVotacionPropuesta(DTO.Propuesta.VotacionPropuestaDTO theVotacionPropuestaDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@pIdVotacionPropuesta", SqlDbType.VarChar, 20, theVotacionPropuestaDTO.IdVotacionPropuesta); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionVotacionPropuesta", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.Propuesta.VotacionPropuestaDTO myVotacionPropuestaDTO) { bool resultado = VotacionPropuestaDAL.Update(myVotacionPropuestaDTO); return(resultado); }
public static bool Insert(DTO.Propuesta.VotacionPropuestaDTO myVotacionPropuestaDTO) { bool resultado = VotacionPropuestaDAL.Insert(myVotacionPropuestaDTO); return(resultado); }