Esempio n. 1
0
        public override bool Excluir()
        {
            bool bExcluir          = false;
            ProdutoTableAdapter ta = new ProdutoTableAdapter();

            bExcluir = (ta.Delete(nCodGenerico) > 0);
            return(bExcluir);
        }
Esempio n. 2
0
        public override bool Excluir()
        {
            bool bExcluir = false;

            try
            {
                ProdutoTableAdapter ta = new ProdutoTableAdapter();
                bExcluir = (ta.Delete(nCodGenerico) > 0);
            }
            catch (Exception)
            {
                bExcluir = false;
            }
            return(bExcluir);
        }