public IOperation BackupService(Deployment deployment) { var serviceName = deployment.GetServiceName(); var serviceFolder = deployment.GetDeployFolder(); var backupFolder = deployment.GetBackupFolder(); return(new BackupService(serviceName, serviceFolder, backupFolder)); }
private object ShowBackups(dynamic parameters) { Deployment deployment = GetDeployment(parameters); var backupFolder = deployment.GetBackupFolder(); var folders = Folder .EnumerateFolders(backupFolder) .SortDescending(x => x.CreationTime); return(new BackupListModel(deployment.Id, folders)); }