public Task <ConcurrentBag <SelectableItem> > GetItems() { var folders = FolderService.GetFolders(m_path); var items = folders.Select(f => new SelectableItem(m_prefix + FileService.GetFileName(f), () => GetActions(f))).ToList(); return(Task.FromResult(new ConcurrentBag <SelectableItem>(items))); }
public IEnumerable <string> Get() { try { using (FolderService folderService = new FolderService()) { return(folderService.GetFolders(GetAuthKeyFromHeader())); } } catch (Exception ex) { throw ex; } }