예제 #1
0
        public static bool ValidaEliminacionContenido(DTO.ContenidoDTO theContenidoDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idContenido", SqlDbType.VarChar, 20, theContenidoDTO.ContenidoId);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionContenido", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
예제 #2
0
        public static bool Update(DTO.ContenidoDTO myContenidoDTO)
        {
            bool resultado = ContenidoDAL.Update(myContenidoDTO);

            return(resultado);
        }
예제 #3
0
        public static bool Insert(DTO.ContenidoDTO myContenidoDTO)
        {
            bool resultado = ContenidoDAL.Insert(myContenidoDTO);

            return(resultado);
        }