Browse Source

update

Felix_TestBranch
Naumann 2 years ago
parent
commit
7cdf29cf1b
  1. 1
      Controllers/CatalogueController.cs
  2. 2
      Data/KatalogRepo.cs

1
Controllers/CatalogueController.cs

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

2
Data/KatalogRepo.cs

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

Loading…
Cancel
Save