Example #1
0
        public List<Autores> PesquisarBL()
        {
            /*criar as regras de negocio*/
            AutoresDA autoresDA = new AutoresDA();

            return autoresDA.PesquisarDA();
        }
Example #2
0
        public List<Autores> PesquisarBuscaBL(string valor)
        {
            /*criar as regras de negocio*/
            AutoresDA autoresDA = new AutoresDA();

            return autoresDA.PesquisarBuscaDA(valor);
        }
Example #3
0
        public bool InserirBL(Autores aut)
        {
            if (IsValid(aut))
            {
                AutoresDA autoresDA = new AutoresDA();

                return autoresDA.InserirDA(aut);
            }
            else
                return false;
        }
Example #4
0
        public bool ExcluirBL(Autores aut)
        {
            if (aut.Id > 0)
            {
                AutoresDA autoresDA = new AutoresDA();

                return autoresDA.ExcluirDA(aut);
            }
            else
                return false;
        }
Example #5
0
        public bool EditarBL(Autores aut)
        {
            if (aut.Id > 0 && IsValid(aut))
            {
                AutoresDA autoresDA = new AutoresDA();

                return autoresDA.EditarDA(aut);
            }
            else
                return false;
        }
Example #6
0
        public List<Autores> PesquisarBL(string campo, string valor)
        {
            AutoresDA autoresDA = new AutoresDA();

            return autoresDA.PesquisarDA(campo, valor);
        }
Example #7
0
        public List<Autores> PesquisarBL(int aut)
        {
            AutoresDA autoresDA = new AutoresDA();

            return autoresDA.PesquisarDA(aut);
        }