Exemplo n.º 1
0
        // create shelf
        public override Task <Shelf> CreateShelf(CreateShelfRequest request, ServerCallContext context)
        {
            Shelf shelf = _shelfBookRepository.CreateShelf(request.Shelf);

            return(Task.FromResult(shelf));
        }
Exemplo n.º 2
0
 public IActionResult CreateShelf([FromBody] Shelf shelf)
 {
     shelf = _shelfBookRepository.CreateShelf(shelf);
     return(Created(shelf));
 }