コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: EventoBLL.cs プロジェクト: julioarriagada82/youcom
        public static bool Update(DTO.EventoDTO myEventoDTO)
        {
            bool resultado = EventoDAL.Update(myEventoDTO);

            return(resultado);
        }
コード例 #3
0
ファイル: EventoBLL.cs プロジェクト: julioarriagada82/youcom
        public static bool Insert(DTO.EventoDTO myEventoDTO)
        {
            bool resultado = EventoDAL.Insert(myEventoDTO);

            return(resultado);
        }