2020-05-27 09:21:39 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using BuecherwurmAPI.Models;
|
|
|
|
|
|
|
|
namespace BuecherwurmAPI.Data
|
|
|
|
{
|
|
|
|
public class KatalogRepo
|
|
|
|
{
|
|
|
|
private readonly object _context;
|
|
|
|
|
|
|
|
public IEnumerable<Book> GetAllBooks()
|
|
|
|
{
|
2020-05-27 10:00:19 +00:00
|
|
|
return _context.Book.ToList();
|
2020-05-27 09:21:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*public Book GetBookById(int id)
|
|
|
|
{
|
|
|
|
return _context.FirstOrDefault(p => p.Id == id);
|
|
|
|
}*/
|
|
|
|
}
|
|
|
|
}
|