bugfix in inventar
This commit is contained in:
parent
f16154cf0a
commit
5b72cc76e2
3 changed files with 4 additions and 16 deletions
|
@ -32,7 +32,7 @@ namespace BuecherwurmAPI.Controllers
|
|||
return Ok(new Item
|
||||
{
|
||||
Id = item.Id,
|
||||
BookId = book.ProductId,
|
||||
BookId = item.BookId,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ namespace BuecherwurmAPI.Controllers
|
|||
{
|
||||
return NotFound();
|
||||
}
|
||||
_repository.DeleteItems(item);
|
||||
_repository.DeleteItem(item);
|
||||
return NoContent();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
using BuecherwurmAPI.Models;
|
||||
|
||||
namespace BuecherwurmAPI.Data
|
||||
{
|
||||
public interface IInventarRepo
|
||||
{
|
||||
IEnumerable<Item> GetAllItems();
|
||||
Item GetItemById(int id);
|
||||
void DeleteItem(Item item);
|
||||
}
|
||||
}
|
|
@ -7,7 +7,7 @@ namespace BuecherwurmAPI.Data
|
|||
{
|
||||
IEnumerable<Item> GetAllItems();
|
||||
Item GetItemById(int id);
|
||||
NewItem(Item item);
|
||||
DeleteItem(int id);
|
||||
void NewItem(Item item);
|
||||
void DeleteItem(Item item);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue