public List <VideoMediaElement> TransformToVideoMediaCollection(int CollectionId)
        {
            List <MediaElement> mediaCollection = GetMediaCollection(CollectionId);
            string mediaFolder = GetMediaCollectionDescription(CollectionId).Location;

            List <VideoMediaElement> videoMediaCollection = new List <VideoMediaElement>();

            foreach (MediaElement mediaElement in mediaCollection)
            {
                VideoMediaElement videoMediaElement = new VideoMediaElement();
                videoMediaElement.VideoFile = "/Content/" + mediaFolder + mediaElement.File;
                videoMediaElement.ImageFile = "/Content/" + mediaFolder + Path.GetFileNameWithoutExtension(mediaElement.File) + ".jpg";
                videoMediaCollection.Add(videoMediaElement);
            }

            return(videoMediaCollection);
        }
        public List<VideoMediaElement> TransformToVideoMediaCollection(int CollectionId)
        {
            List<MediaElement> mediaCollection = GetMediaCollection(CollectionId);
            string mediaFolder = GetMediaCollectionDescription(CollectionId).Location;

            List<VideoMediaElement> videoMediaCollection = new List<VideoMediaElement>();
            foreach (MediaElement mediaElement in mediaCollection)
            {
                VideoMediaElement videoMediaElement = new VideoMediaElement();
                videoMediaElement.VideoFile         = "/Content/" + mediaFolder + mediaElement.File;
                videoMediaElement.ImageFile         = "/Content/" + mediaFolder + Path.GetFileNameWithoutExtension(mediaElement.File) + ".jpg";
                videoMediaCollection.Add(videoMediaElement);
            }

            return videoMediaCollection;
        }