public static async Task <string> ExportRootSingleTableStyleAsync(IPathManager pathManager, IDatabaseManager databaseManager, int siteId, string tableName, List <int> relatedIdentities) { var filePath = pathManager.GetTemporaryFilesPath("tableStyle.zip"); var styleDirectoryPath = pathManager.GetTemporaryFilesPath("TableStyle"); await TableStyleIe.SingleExportTableStylesAsync(databaseManager, siteId, tableName, relatedIdentities, styleDirectoryPath); pathManager.CreateZip(filePath, styleDirectoryPath); DirectoryUtils.DeleteDirectoryIfExists(styleDirectoryPath); return(PathUtils.GetFileName(filePath)); }
public async Task <string> ExportSingleTableStyleAsync(string tableName, int relatedIdentity) { var filePath = _pathManager.GetTemporaryFilesPath("tableStyle.zip"); var styleDirectoryPath = _pathManager.GetTemporaryFilesPath("TableStyle"); await TableStyleIe.SingleExportTableStylesAsync(_databaseManager, tableName, _site.Id, relatedIdentity, styleDirectoryPath); _pathManager.CreateZip(filePath, styleDirectoryPath); DirectoryUtils.DeleteDirectoryIfExists(styleDirectoryPath); return(PathUtils.GetFileName(filePath)); }