Exemple #1
0
        public bool Delete(Aluno_TO pTO)
        {
            bool retorno = false;

            try
            {
                retorno = new Aluno_DAO().Delete(pTO);
            }
            catch (Exception)
            {
                throw;
            }
            return(retorno);
        }
Exemple #2
0
        public List <Aluno_TO> SearchAll(Aluno_TO pTO)
        {
            string          condicao   = "";
            List <Aluno_TO> collection = new List <Aluno_TO>();

            try
            {
                // implementa a condição de procura
                condicao = "";
                //return new Aluno_DAO().SearchAll(condicao);
                collection = new Aluno_DAO().SearchAll(condicao);
            }
            catch (Exception)
            {
                throw;
            }
            return(collection);
        }
Exemple #3
0
        public bool Save(Aluno_TO pTO, bool save)
        {
            bool retorno = false;

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