update
This commit is contained in:
parent
c489070a52
commit
7cdf29cf1b
2 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ public ActionResult<IEnumerable<Book>> GetAllBooks()
|
||||||
|
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
// GET Katalog/{id}
|
||||||
[HttpGet("{id}", Name ="GetBookByID")]
|
[HttpGet("{id}", Name ="GetBookByID")]
|
||||||
public ActionResult <IEnumerable<Book>> GetBookByID(int id)
|
public ActionResult <IEnumerable<Book>> GetBookByID(int id)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace BuecherwurmAPI.Data
|
||||||
|
|
||||||
public IEnumerable<Book> GetAllBooks()
|
public IEnumerable<Book> GetAllBooks()
|
||||||
{
|
{
|
||||||
//return _context.Book.ToList();
|
return _context.Book.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*public Book GetBookById(int id)
|
/*public Book GetBookById(int id)
|
||||||
|
|
Loading…
Reference in a new issue