public string GetUnprocessedVideosAcCsv()
        {
            var videoIds = new List <int>();

            using (var context = new VideoContext()) {
                var videos =
                    (from video in context.Videos
                     where !video.IsProcessed
                     select video).ToList();
                videoIds.AddRange(videos.Select(v => v.Id));

                return(String.Join(",", videoIds));
            }
        }
Beispiel #2
0
        public string GetUnprocessedVideosAsCsv()
        {
            var videoIds = new List <int>();

            using (var context = new VideoContext())
            {
                var videos = context.Videos.Where(x => !x.IsProcessed).ToList();

                foreach (var v in videos)
                {
                    videoIds.Add(v.Id);
                }

                return(string.Join(",", videoIds));
            }
        }