BuecherwurmAPI/Controllers/CatalogueController.cs

31 lines
655 B
C#
Raw Normal View History

using System.Collections.Generic;
using BuecherwurmAPI.Models;
using Microsoft.AspNetCore.Mvc;
namespace BuecherwurmAPI.Controllers
{
[Route("katalog") ]
[ApiController]
public class KatalogController
{
private readonly object _repository;
/*[HttpGet]
public ActionResult<IEnumerable<Book>> GetAllBooks()
{
}*/
2020-05-27 10:00:19 +00:00
// GET Katalog/{id}
[HttpGet("{id}", Name ="GetBookByID")]
public ActionResult <IEnumerable<Book>> GetBookByID(int id)
{
var bookItem = _repository.GetBookByID(id);
if (bookItem != null)
{
return
}
}
}
}