public static bool ValidaEliminacionMensajePorteria(DTO.MensajePorteriaDTO theMensajePorteriaDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idMensajePorteria", SqlDbType.VarChar, 20, theMensajePorteriaDTO.IdMensajePorteria); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionMensajePorteria", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.MensajePorteriaDTO myMensajePorteriaDTO) { bool resultado = YouCom.Mensajeria.DAL.MensajePorteriaDAL.Update(myMensajePorteriaDTO); return(resultado); }
public static bool Insert(DTO.MensajePorteriaDTO myMensajePorteriaDTO) { bool resultado = YouCom.Mensajeria.DAL.MensajePorteriaDAL.Insert(myMensajePorteriaDTO); return(resultado); }