Пример #1
0
        public ShiftItem MapShift(ShiftModel shift)
        {
            var shiftItem = new ShiftItem
            {
                StartDateTime = shift.StartDate,
                EndDateTime   = shift.EndDate,
                Activities    = MapActivities(shift),
                Theme         = _shiftThemeMap.MapTheme(shift.ThemeCode)
            };

            return(shiftItem);
        }
Пример #2
0
        public OpenShiftItem MapOpenShift(ShiftModel shift)
        {
            var shiftItem = new OpenShiftItem
            {
                StartDateTime = shift.StartDate,
                EndDateTime   = shift.EndDate,
                Activities    = MapActivities(shift),
                Theme         = _shiftThemeMap.MapTheme(shift.ThemeCode),
                OpenSlotCount = shift.Quantity
            };

            return(shiftItem);
        }