public FileStreamResult FileManagerPartialDownload(string filtered) { var app = DocumentsApp.Instance; string currentFilter = filtered ?? "All"; var model = new HomeModel() { DocumentsApp = app, FileSystemProvider = CreateFileSystemProvider(app, currentFilter), IsFilterApplied = currentFilter != "All", PanelName = SelectedFilterText(currentFilter, "FilterNameLabel"), SourceName = currentFilter, FilterName = currentFilter }; return FileManagerExtension.DownloadFiles("FileManager", model.FileSystemProvider); }
public ActionResult Index() { var app = DocumentsApp.Instance; string currentFilter = "All"; var model = new HomeModel() { DocumentsApp = app, FileSystemProvider = CreateFileSystemProvider(app, currentFilter), IsFilterApplied = currentFilter != "All", PanelName = SelectedFilterText(currentFilter, "All documents"), SourceName = currentFilter, FilterName = currentFilter }; return View(model); }
public ActionResult FileManagerPartial(string filtered) { var app = DocumentsApp.Instance; string currentFilter = filtered ?? "All"; var model = new HomeModel() { DocumentsApp = app, FileSystemProvider = CreateFileSystemProvider(app, currentFilter), IsFilterApplied = currentFilter != "All", PanelName = SelectedFilterText(currentFilter, "FilterNameLabel"), SourceName = currentFilter, FilterName = currentFilter }; return PartialView("_FileManagerPartial", model); }