public DtoFolder AddFolder(DtoFolder parent, string newFolderName) { var folder = folderRepository.Add(parent.ToDalFolder(), newFolderName); uow.Commit(); return(folder.ToDtoFolder()); }
public void RemoveAccessToFolderToUsers(DtoFolder folder, params DtoUser[] users) { folderRepository.RemoveAccessToFolder(folder.ToDalFolder(), users.Select(item => item.ToDalUser()).ToArray()); uow.Commit(); }
public void MoveFilesIntoAnotherFolder(DtoFolder folder, params DtoFile[] files) { folderRepository.MoveFiles(folder.ToDalFolder(), files.Select(item => item.ToDalFile()).ToArray()); uow.Commit(); }
public void MoveFolder(DtoFolder movingFolder, DtoFolder toFolder) { folderRepository.Move(movingFolder.ToDalFolder(), toFolder.ToDalFolder()); uow.Commit(); }
public void UpdateFolder(DtoFolder e) { folderRepository.Update(e.ToDalFolder()); uow.Commit(); }
public IEnumerable <DtoFolder> GetNeighboringNodes(DtoFolder folder) => folderRepository.GetNeighboringNodes(folder.ToDalFolder()).Select(item => item.ToDtoFolder());
public DtoFolder GetPreviousLevelParentNode(DtoFolder folder) => folderRepository.GetPreviousLevelParentNode(folder.ToDalFolder()).ToDtoFolder();
public IEnumerable <DtoFolder> GetNextLevelChildNodes(DtoFolder folder) => folderRepository.GetNextLevelChildNodes(folder.ToDalFolder()).Select(item => item.ToDtoFolder());