Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
David Renner | dd4541f720 | |
David Renner | 7314dc780d | |
David Renner | 7fc04455f6 |
|
@ -23,7 +23,11 @@ namespace BuecherwurmAPI.Controllers
|
||||||
public ActionResult<IEnumerable<Item>> GetAllItems()
|
public ActionResult<IEnumerable<Item>> GetAllItems()
|
||||||
{
|
{
|
||||||
var items = _repository.GetAllItems();
|
var items = _repository.GetAllItems();
|
||||||
return Ok(items);
|
if (items != null)
|
||||||
|
{
|
||||||
|
return Ok(items);
|
||||||
|
}
|
||||||
|
return NoContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
// POST api/inventar
|
// POST api/inventar
|
||||||
|
|
Loading…
Reference in New Issue