This commit is contained in:
Naumann 2020-05-27 12:00:19 +02:00
parent c489070a52
commit 7cdf29cf1b
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ public ActionResult<IEnumerable<Book>> GetAllBooks()
}*/
// GET Katalog/{id}
[HttpGet("{id}", Name ="GetBookByID")]
public ActionResult <IEnumerable<Book>> GetBookByID(int id)
{

View file

@ -9,7 +9,7 @@ namespace BuecherwurmAPI.Data
public IEnumerable<Book> GetAllBooks()
{
//return _context.Book.ToList();
return _context.Book.ToList();
}
/*public Book GetBookById(int id)