Esempio n. 1
0
        public void Rename(MediaFolder @new, MediaFolder old)
        {
            MediaFolders.RenameFolder(@new, old);

            var blobClient = CloudStorageAccountHelper.GetStorageAccount().CreateCloudBlobClient();
            //var dir = blobContainer.GetDirectoryReference();
            var oldPrefix = old.GetMediaFolderItemPath(null) + "/";
            var newPrefix = @new.GetMediaFolderItemPath(null) + "/";

            MoveDirectory(blobClient, newPrefix, oldPrefix);
        }
Esempio n. 2
0
 public void Remove(MediaFolder item)
 {
     MediaFolders.RemoveFolder(item);
     (new MediaContentProvider()).Delete(item);
 }
Esempio n. 3
0
 public void Update(MediaFolder @new, MediaFolder old)
 {
     MediaFolders.UpdateFolder(@new);
 }
Esempio n. 4
0
 public void Add(MediaFolder item)
 {
     MediaFolders.AddFolder(item);
 }
Esempio n. 5
0
 public MediaFolder Get(MediaFolder dummy)
 {
     return(MediaFolders.GetFolder(dummy));
 }
Esempio n. 6
0
 public IEnumerable <MediaFolder> All(Repository repository)
 {
     return(MediaFolders.RootFolders(repository).AsQueryable());
 }
Esempio n. 7
0
 public IQueryable <MediaFolder> ChildFolders(MediaFolder parent)
 {
     return(MediaFolders.ChildFolders(parent).AsQueryable());
 }
Esempio n. 8
0
 public IQueryable<MediaFolder> All(Repository repository)
 {
     return MediaFolders.RootFolders(repository).AsQueryable();
 }