Changed getAll methods to accept deptId