コード例 #1
0
        public void removeEmployee(Employee employee)
        {
            if (employee.JobPosition == "Doctor")
            {
                doctorRepository.DeleteById(getDoctorFromEmployee(employee).Id);
            }


            if (employee.JobPosition == "Secretary")
            {
                secretaryRepository.DeleteById(getSecretaryFromEmployee(employee).Id);
            }
        }