public void removeEmployee(Employee employee) { if (employee.JobPosition == "Doctor") { doctorRepository.DeleteById(getDoctorFromEmployee(employee).Id); } if (employee.JobPosition == "Secretary") { secretaryRepository.DeleteById(getSecretaryFromEmployee(employee).Id); } }