Beispiel #1
0
        /// <summary>
        /// Builds the root folder.
        /// </summary>
        /// <param name="rootMedia">The root media.</param>
        /// <returns></returns>
        private UmbracoFolderModel BuildRootFolder(ConcurrentBag <IMedia> rootMedia)
        {
            var images = rootMedia.BuildImageModels(UserService);

            var folders = rootMedia.BuildFolderModels(UserService);

            var rootFolder = new UmbracoFolderModel(folders.ToList(), images.ToList());

            return(rootFolder);
        }