Browse Source

update - DELETE auskommentiert und angepasst

InventarDavid
David Renner 2 years ago
parent
commit
defdceaf24
  1. 1027
      .vs/BuecherwurmAPI/config/applicationhost.config
  2. BIN
      .vs/slnx.sqlite
  3. 10
      Controllers/InventarController.cs

1027
.vs/BuecherwurmAPI/config/applicationhost.config

File diff suppressed because it is too large

BIN
.vs/slnx.sqlite

Binary file not shown.

10
Controllers/InventarController.cs

@ -54,16 +54,16 @@ namespace BuecherwurmAPI.Controllers
}
// DELETE katalog/{id}
// DELETE inventory/{id}
/*[HttpDelete("id")]
public ActionResult<IEnumerable<Book>> BuchEntfernen(int id)
public ActionResult<IEnumerable<Copy>> ExemplarEntfernen(int id)
{
var book = _repository.GetBookById(id);
if (book == null)
var copy = _repository.GetCopyById(id);
if (copy == null)
{
return NotFound();
}
_repository.BuchEntfernen(book);
_repository.ExemplarEntfernen(copy);
return NoContent();
}*/

Loading…
Cancel
Save