private int[] EmployeeIds() { if (CausedByEmployees.Count() != 0) { int size = CausedByEmployees.Count(); EmpIds = new int[size]; for (int i = 0; i < EmpIds.Length; i++) { EmpIds[i] = CausedByEmployees[i].Id; } } return(EmpIds); }
private void AddCausedByEmployees(Employee employee) { if (CausedByEmployees.Count() == 0) { CausedByEmployees.Add(employee); } else { if (!CausedByEmployees.Contains(employee)) { CausedByEmployees.Add(employee); } } }