Beispiel #1
0
        public void UnassignEmployeeFromShift(int employeeID, int shiftID)
        {
            Employee employee = fullListemployees.Find(x => x.WorkrID == employeeID);
            Shift    shift    = presentAndFutureShifts.Find(x => x.ShiftID == shiftID);

            shift.UnassignEmployee(employee);

            if (!stageforChanges.Exists(i => i.ShiftID == shift.ShiftID))
            {
                stageforChanges.Add(shift);
            }
        }