public static bool ValidaEliminacionEvento(DTO.EventoDTO theEventoDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idEvento", SqlDbType.VarChar, 20, theEventoDTO.EventoId); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionEvento", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.EventoDTO myEventoDTO) { bool resultado = EventoDAL.Update(myEventoDTO); return(resultado); }
public static bool Insert(DTO.EventoDTO myEventoDTO) { bool resultado = EventoDAL.Insert(myEventoDTO); return(resultado); }