public async Task <List <Conference> > Handle(GetExpiredAudiorecordingConferencesQuery query)
 {
     return(await _context.Conferences
            .Where(x => x.ScheduledDateTime.AddHours(14) <= DateTime.UtcNow &&
                   x.ScheduledDateTime >= DateTime.UtcNow.AddHours(-38) &&
                   x.State > 0)
            .OrderBy(x => x.ScheduledDateTime)
            .AsNoTracking()
            .ToListAsync());
 }
        public async Task <IActionResult> GetExpiredAudiorecordingConferencesAsync()
        {
            _logger.LogDebug("GetExpiredAudiorecordingConferences");
            var query       = new GetExpiredAudiorecordingConferencesQuery();
            var conferences =
                await _queryHandler.Handle <GetExpiredAudiorecordingConferencesQuery, List <Conference> >(query);

            var response = conferences.Select(ConferenceToExpiredConferenceMapper.MapConferenceToExpiredResponse);

            return(Ok(response));
        }