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