Пример #1
0
 public async Task UpdateBookAsync(string bookId, Book book)
 {
     await _bookRepository.UpdateBookAsync(bookId, book);
 }
Пример #2
0
 public void AddBook(Book book)
 {
     book.BookNo = Guid.NewGuid().ToString();
     _Books.Add(book);
 }
Пример #3
0
 public async Task <Book> CreateBookAsync(Book book)
 {
     return(await _bookRepository.CreateBookAsync(book));
 }