public ActionResult ProcessBlueprintPartial([Bind] FileManagerFeaturesOption options)
        {
            string selectedFolder = string.Empty;

            if (!string.IsNullOrEmpty(Request.Params["ProcessBlueprint_State"]))
            {
                dynamic state = JsonConvert.DeserializeObject(Request.Params["ProcessBlueprint_State"]);
                selectedFolder = (string)state.currentPath.Value;
                selectedFolder = selectedFolder.Substring(0, selectedFolder.IndexOf('|'));
            }
            var provider = ProcessBlueprintControllerProcessBlueprintSettings.ProcessBlueprintFileSystemProvider;
            var folder   = new FileManagerFolder(provider, selectedFolder);

            ProcessBlueprintControllerProcessBlueprintSettings.FeatureOptions = options;
            lock (ProcessBlueprintControllerProcessBlueprintSettings.SettingsPermissions)
            {
                ProcessBlueprintControllerProcessBlueprintSettings.SettingsPermissions.AccessRules.Clear();
                ProcessBlueprintControllerProcessBlueprintSettings.ApplyRules(folder);
            }
            return(PartialView("_ProcessBlueprintPartial", ProcessBlueprintControllerProcessBlueprintSettings.ProcessBlueprintFileSystemProvider));
        }
 public FileStreamResult ProcessBlueprintPartialDownload()
 {
     return(FileManagerExtension.DownloadFiles(ProcessBlueprintControllerProcessBlueprintSettings.CreateFileManagerDownloadSettings(), ProcessBlueprintControllerProcessBlueprintSettings.ProcessBlueprintFileSystemProvider));
 }