public async Task <CalendarEvent> GetByRequestIdAsync(int id)
        {
            var calendarEvent = await _visitDataProvider.GetByRequestIdAsync(id);

            if (calendarEvent == null)
            {
                _logger.LogError($"No calendar event found with id {id}");
                throw new EntityNotFoundException();
            }

            if (calendarEvent.MsObjectId != null)
            {
                calendarEvent = await SyncSubjectAndPeriod(calendarEvent);
            }

            return(calendarEvent);
        }