BuecherwurmAPI/Data/KatalogRepo.cs

26 lines
551 B
C#
Raw Normal View History

using System.Collections.Generic;
using BuecherwurmAPI.Models;
2020-05-27 12:22:54 +00:00
using Microsoft.AspNetCore.Mvc;
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 12:22:54 +00:00
_context = context;
}
2020-05-27 12:22:54 +00:00
/*public IEnumerable<Book> GetAllBooks()
{
return _context.books.ToList();
}*/
/*public Book GetBookById(int id)
{
return _context.FirstOrDefault(p => p.Id == id);
}*/
}
}