public void RemoveBook(Book book) { if (!_bookStorage.Remove(book)) { throw new ArgumentException("Not found"); } }
public void RemoveBook(Book book) { _logger.Debug($"Try RemoveBook {book}"); if (!_bookStorage.Remove(book)) { _logger.Error($"ISBN {book.ISBN} not found"); throw new ArgumentException("Not found"); } _logger.Info($"Book ISBN : {book.ISBN} removed"); }