Exemplo n.º 1
0
        public AnswerResponseBE UpdateDepartamento([FromBody] DepartamentoBE UDEPT)
        {
            AnswerResponseBE  AR = new AnswerResponseBE();
            DepartamentoLogic DL = new DepartamentoLogic(_appDbContext);

            AR = DL.UpdateDepartamento(UDEPT);
            return(AR);
        }
Exemplo n.º 2
0
        public AnswerResponseBE DeleteDepartamento(int id)
        {
            AnswerResponseBE  AR = new AnswerResponseBE();
            DepartamentoLogic DL = new DepartamentoLogic(_appDbContext);

            AR = DL.DeleteDepartamento(id);
            return(AR);
        }
Exemplo n.º 3
0
        public List <DepartamentoBE> GetDepartamentoAll()
        {
            List <DepartamentoBE> lstdepto = new List <DepartamentoBE>();
            DepartamentoLogic     DL       = new DepartamentoLogic(_appDbContext);

            lstdepto = DL.GetDepartamentoAll();
            return(lstdepto);
        }