Example #1
0
        public bool Editar(OrgaoLicenciamento orgao)
        {
            bool operacao = false;

            DAL.OrgaoLicenciamentoDAL obd = new DAL.OrgaoLicenciamentoDAL();

            operacao = obd.Editar(orgao);

            return(operacao);
        }
Example #2
0
        public (bool, string) Criar(Models.OrgaoLicenciamento orgao)
        {
            string msg      = "";
            bool   operacao = false;

            DAL.OrgaoLicenciamentoDAL obd = new DAL.OrgaoLicenciamentoDAL();

            if (obd.validarnomeUnico(orgao.Descriçao))
            {
                msg = "orgão já cadastrado.";
            }
            else
            {
                operacao = obd.Criar(orgao);
            }

            return(operacao, msg);
        }
Example #3
0
 public bool Excluir(int id)
 {
     DAL.OrgaoLicenciamentoDAL obd = new DAL.OrgaoLicenciamentoDAL();
     return(obd.Excluir(id));
 }
Example #4
0
        public List <Models.OrgaoLicenciamento> Pesquisar(string descricao)
        {
            DAL.OrgaoLicenciamentoDAL obd = new DAL.OrgaoLicenciamentoDAL();

            return(obd.Pesquisar(descricao));
        }
Example #5
0
 public List <Models.OrgaoLicenciamento> ObterTodos()
 {
     DAL.OrgaoLicenciamentoDAL obd = new DAL.OrgaoLicenciamentoDAL();
     return(obd.ObterTodos());
 }
Example #6
0
 public Models.OrgaoLicenciamento Obter(int id)
 {
     DAL.OrgaoLicenciamentoDAL obd = new DAL.OrgaoLicenciamentoDAL();
     return(obd.Obter(id));
 }