Exemplo n.º 1
0
 // delete shelf
 public override Task <Empty> DeleteShelf(DeleteShelfRequest request, ServerCallContext context)
 {
     _shelfBookRepository.DeleteShelf(request.Shelf);
     return(Task.FromResult(new Empty()));
 }
Exemplo n.º 2
0
 public IActionResult DeleteShelf(long shelfId)
 {
     _shelfBookRepository.DeleteShelf(shelfId);
     return(NoContent());
 }