Compare commits

...

3 Commits

1 changed files with 5 additions and 1 deletions

View File

@ -23,8 +23,12 @@ namespace BuecherwurmAPI.Controllers
public ActionResult<IEnumerable<Item>> GetAllItems() public ActionResult<IEnumerable<Item>> GetAllItems()
{ {
var items = _repository.GetAllItems(); var items = _repository.GetAllItems();
if (items != null)
{
return Ok(items); return Ok(items);
} }
return NoContent();
}
// POST api/inventar // POST api/inventar
[HttpPost] [HttpPost]