Example #1
0
        private void AddBookToBookStore()
        {
            var bookStoreBook = new BookStoreBook
            {
                BookId      = _ioHelper.GetIntFromUser("Provide Book id"),
                BookStoreId = _ioHelper.GetIntFromUser("Provide BookStore id")
            };

            _bookStoreService.AddBookToBookStoreAsync(bookStoreBook).Wait();
        }
Example #2
0
 public async Task PostBookToBookStore([FromBody] BookStoreBook bookStoreBook)
 {
     await _bookStoreService.AddBookToBookStoreAsync(bookStoreBook);
 }