// PUT api/emprestimo/5 public bool Put(DTOEmprestimo produto) { BLLEmprestimo BLLobjeto = new BLLEmprestimo(); return BLLobjeto.AlterarEmprestimo(produto); }
// GET api/emprestimo/Teste/5 /*[Route("api/emprestimo/teste/{id}")] public string GetTeste(int id) { return "Teste sucesso"; }*/ // POST api/emprestimo public DTOEmprestimo Post(DTOEmprestimo produto) { BLLEmprestimo BLLobjeto = new BLLEmprestimo(); return BLLobjeto.InserirEmprestimo(produto); }
// GET api/emprestimo public DTOResponse Get() { BLLEmprestimo BLLobjeto = new BLLEmprestimo(); return BLLobjeto.SelecionarEmprestimosAbertos(); }
// GET api/emprestimo/5 public DTOResponse Get(int id) { BLLEmprestimo BLLobjeto = new BLLEmprestimo(); return BLLobjeto.SelecionarEmprestimo(id); }
// DELETE api/emprestimo/5 public bool Delete(int id) { BLLEmprestimo BLLobjeto = new BLLEmprestimo(); return BLLobjeto.DeletarEmprestimo(id); }