feat: enhance employee CRUD with search, filters, and security module
This commit is contained in:
@@ -94,3 +94,9 @@ class EmployeeRepository:
|
||||
self.db.commit()
|
||||
self.db.refresh(employee)
|
||||
return employee
|
||||
|
||||
def save(self, employee: Employee) -> Employee:
|
||||
self.db.add(employee)
|
||||
self.db.commit()
|
||||
self.db.refresh(employee)
|
||||
return employee
|
||||
|
||||
Reference in New Issue
Block a user