Esempio n. 1
0
    def get_employee_by_ssn(ssn):
        all_employees = DataAPI.get_all_employees()

        for employee in all_employees:
            if employee.get_ssn() == ssn:
                return [employee]

        return []
Esempio n. 2
0
 def get_all_employees():
     return EmployeeLogic.__sort_list_by_name(DataAPI.get_all_employees())