Example #1
0
        public async Task SaveAsync(DomainModel.Directory directory)
        {
            var directoryContext = new DirectoryContext(directory.Id);

            directoryContext.DemandAccess();

            foreach (var file in directory.GetNewFiles())
            {
                directoryContext.CreateFile(file.Name, file.Content);
            }

            directory.Commit();
            await Task.Yield();
        }