Example #1
0
 public HttpResponseMessage Post(LivroDto livro)
 {
     return(BaseAppService.Post("http://localhost:5002/api/Livro/Post", livro));
 }
Example #2
0
 public HttpResponseMessage Put(LivroDto livro)
 {
     return(BaseAppService.Put("http://localhost:5002/Livro/Put", livro, livro.idLivro));
 }
Example #3
0
 public HttpResponseMessage Get(int?idAutor = null)
 {
     return(BaseAppService.Get("http://localhost:5002/api/Livro"));
 }
Example #4
0
 public HttpResponseMessage GetById(int?idLivro = null)
 {
     return(BaseAppService.GetById("http://localhost:5002/api/Livro?idLivro=" + idLivro));
 }
Example #5
0
 public HttpResponseMessage Put(AutorDto autor)
 {
     return(BaseAppService.Put("http://localhost:5002/api/Autor/Put", autor, autor.idAutor));
 }
Example #6
0
 public HttpResponseMessage Delete(int idAutor)
 {
     return(BaseAppService.Delete("http://localhost:5002/api/Livro?idLivro=" + idAutor));
 }
Example #7
0
 public HttpResponseMessage Post(object autor)
 {
     return(BaseAppService.Post("http://localhost:5002/api/Autor/Post", autor));
 }
Example #8
0
 public HttpResponseMessage GetById(int?idAutor = null)
 {
     return(BaseAppService.GetById("http://localhost:5002/api/Autor?idAutor=" + idAutor));
 }
Example #9
0
 public HttpResponseMessage Put(EditoraDto editora)
 {
     return(BaseAppService.Put("http://localhost:5002/api/Editora", editora, editora.idEditora));
 }
Example #10
0
 public HttpResponseMessage GetById(int?idEditora = null)
 {
     return(BaseAppService.GetById("http://localhost:5002/api/Editora?idEditora=" + idEditora));
 }
Example #11
0
 public HttpResponseMessage Delete(int idEditora)
 {
     return(BaseAppService.Delete("http://localhost:5002/api/Editora?idEditora=" + idEditora));
 }