File size: 324 Bytes
df50319
 
 
164aab4
 
 
df50319
164aab4
 
 
1
2
3
4
5
6
7
8
9
10
from src.repositories.user_repository import UserRepository

class UserService:
    """Handles user business logic"""
    def __init__(self):
        self.user_repository = UserRepository()

    def create_user(self, name, email):
        """Creates a new user"""
        return self.user_repository.create_user(name, email)