예제 #1
0
        private void DeleteAllSubFolders(Guid parentFolderId)
        {
            List <Guid> directlySubFolderIds = _folderRepository.FindDirectlySubFolderIds(parentFolderId);

            foreach (Guid subFolderId in directlySubFolderIds)
            {
                DeleteAllSubFolders(subFolderId);
            }
            _genericRepository.DeleteRange <Folder>(x => x.Id == parentFolderId);
        }