26 lines
No EOL
551 B
C#
26 lines
No EOL
551 B
C#
using System.Collections.Generic;
|
|
using BuecherwurmAPI.Models;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace BuecherwurmAPI.Data
|
|
{
|
|
public class KatalogRepo
|
|
{
|
|
private readonly object _context;
|
|
|
|
public KatalogRepo (object context)
|
|
{
|
|
_context = context;
|
|
}
|
|
|
|
/*public IEnumerable<Book> GetAllBooks()
|
|
{
|
|
return _context.books.ToList();
|
|
}*/
|
|
|
|
/*public Book GetBookById(int id)
|
|
{
|
|
return _context.FirstOrDefault(p => p.Id == id);
|
|
}*/
|
|
}
|
|
} |