Compare commits

...

3 Commits

1 changed files with 5 additions and 1 deletions

View File

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