from src.core.repository.databases.book_repository import BookRepository
from src.core.service.service import Service
from src.model.book import Book


class BookService(Service):
    def __init__(self):
        super().__init__(BookRepository())

    def save(self, book: Book):
        super().save(book)

    def delete(self, book: Book):
        super().delete(book)

    def update(self, book: Book):
        super().update(book)

from src.core.repository.databases.book_repository import BookRepository
from src.core.service.service import Service
from src.model.book import Book


class BookService(Service):
    def __init__(self):
        super().__init__(BookRepository())

    def save(self, book: Book):
        super().save(book)

    def delete(self, book: Book):
        super().delete(book)

    def update(self, book: Book):
        super().update(book)
