コード例 #1
0
 // PUT api/emprestimo/5
 public bool Put(DTOEmprestimo produto)
 {
     BLLEmprestimo BLLobjeto = new BLLEmprestimo();
     return BLLobjeto.AlterarEmprestimo(produto);
 }
コード例 #2
0
 // 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);
 }
コード例 #3
0
 // GET api/emprestimo
 public DTOResponse Get()
 {
     BLLEmprestimo BLLobjeto = new BLLEmprestimo();
     return BLLobjeto.SelecionarEmprestimosAbertos();
 }
コード例 #4
0
 // GET api/emprestimo/5
 public DTOResponse Get(int id)
 {
     BLLEmprestimo BLLobjeto = new BLLEmprestimo();
     return BLLobjeto.SelecionarEmprestimo(id);
 }
コード例 #5
0
 // DELETE api/emprestimo/5
 public bool Delete(int id)
 {
     BLLEmprestimo BLLobjeto = new BLLEmprestimo();
     return BLLobjeto.DeletarEmprestimo(id);
 }