Пример #1
0
        public Task <DatacardModel[]> GetDatacards()
        {
            var datacardsPath = _datacardPath.GetDatacardsPath();
            var datacards     = _fileSystem.GetDirectories(datacardsPath)
                                .Select(CreateDatacardModel)
                                .ToArray();

            return(Task.FromResult(datacards));
        }
Пример #2
0
        private void EnsureDatacardsDirectoryExists()
        {
            var datacardsPath = _datacardPath.GetDatacardsPath();

            if (!_fileSystem.DirectoryExists(datacardsPath))
            {
                _fileSystem.CreateDirectory(datacardsPath);
            }
        }