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); }
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); }