public bool HandleChange(IList <FlexKidsScheduler.Model.ScheduleDiff> schedule)
        {
            if (schedule == null || !schedule.Any())
            {
                Logger.Trace("HandleChange Google calender, schedule == null | count = 0");
                return(true);
            }

            try
            {
                Logger.Trace("Create Google Calendar");
                var google = new GoogleCalendarScheduler(dateTimeProvider, flexKidsConfig);
                Logger.Trace("Make events");
                google.MakeEvents(schedule);
            }
            catch (Exception ex)
            {
                Logger.Error("Something went wrong using Google Calendar.", ex);
                return(false);
            }
            Logger.Trace("Done Google calendar");
            return(true);
        }
        public async Task <bool> HandleChange(IReadOnlyList <ScheduleDiff> schedule, WeekSchedule updatedWeekSchedule)
        {
            if (schedule == null || !schedule.Any())
            {
                _logger.LogTrace("HandleChange Google calender, schedule == null | count = 0");
                return(true);
            }

            try
            {
                _logger.LogTrace("Create Google Calendar");
                var google = new GoogleCalendarScheduler(_config);
                _logger.LogTrace("Make events");
                await google.MakeEvents(schedule, updatedWeekSchedule);
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Something went wrong using Google Calendar.");
                return(false);
            }

            _logger.LogTrace("Done Google calendar");
            return(true);
        }