コード例 #1
0
        public bool Delete(Curso_TO pTO)
        {
            bool retorno = false;

            try
            {
                retorno = new Curso_DAO().Delete(pTO);
            }
            catch (Exception)
            {
                throw;
            }
            return(retorno);
        }
コード例 #2
0
        public bool Save(Curso_TO pTO, bool novo)
        {
            bool retorno = false;

            try
            {
                if (novo)
                {
                    retorno = new Curso_DAO().Save(pTO);
                }
                else
                {
                    retorno = new Curso_DAO().Update(pTO);
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(retorno);
        }