private async Task UpdateVideoStreamsSavedInfo(IEnumerable <VideoStream> streams) { foreach (var stream in streams) { DTOs.YouTube.StreamInfo newInfo = await youTubeService.GetVideoStreamInfo(stream.YouTubeId); if (newInfo.StartTime != stream.StartTime || newInfo.EndTime != stream.EndTime) { stream.StartTime = newInfo.StartTime; stream.EndTime = newInfo.EndTime; await videoStreams.UpdateAsync(stream); } } }