Esempio n. 1
0
        public bool Delete(Status_TO pTO)
        {
            bool retorno = false;

            try
            {
                retorno = new Status_DAO().Delete(pTO);
            }
            catch (Exception)
            {
                throw;
            }
            return(retorno);
        }
Esempio n. 2
0
        public bool Save(bool pOpcao, Status_TO pTO)
        {
            bool retorno = false;

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