update - DELETE auskommentiert und angepasst
This commit is contained in:
parent
7f5ca580c6
commit
defdceaf24
3 changed files with 1032 additions and 5 deletions
1027
.vs/BuecherwurmAPI/config/applicationhost.config
Normal file
1027
.vs/BuecherwurmAPI/config/applicationhost.config
Normal file
File diff suppressed because it is too large
Load diff
BIN
.vs/slnx.sqlite
BIN
.vs/slnx.sqlite
Binary file not shown.
|
@ -54,16 +54,16 @@ namespace BuecherwurmAPI.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// DELETE katalog/{id}
|
// DELETE inventory/{id}
|
||||||
/*[HttpDelete("id")]
|
/*[HttpDelete("id")]
|
||||||
public ActionResult<IEnumerable<Book>> BuchEntfernen(int id)
|
public ActionResult<IEnumerable<Copy>> ExemplarEntfernen(int id)
|
||||||
{
|
{
|
||||||
var book = _repository.GetBookById(id);
|
var copy = _repository.GetCopyById(id);
|
||||||
if (book == null)
|
if (copy == null)
|
||||||
{
|
{
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
_repository.BuchEntfernen(book);
|
_repository.ExemplarEntfernen(copy);
|
||||||
return NoContent();
|
return NoContent();
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue