improve module export so that content can be saved to a file

This commit is contained in:
sbwalker
2025-05-15 08:56:21 -04:00
parent f3fcef52dd
commit a49b8728fd
6 changed files with 164 additions and 14 deletions

View File

@ -56,7 +56,17 @@ namespace Oqtane.Services
/// Exports a given module
/// </summary>
/// <param name="moduleId"></param>
/// <returns>module in JSON</returns>
/// <param name="pageId"></param>
/// <returns>module content in JSON format</returns>
Task<string> ExportModuleAsync(int moduleId, int pageId);
/// <summary>
/// Exports a given module
/// </summary>
/// <param name="moduleId"></param>
/// <param name="pageId"></param>
/// <param name="folderId"></param>
/// <returns>success/failure</returns>
Task<Result> ExportModuleAsync(int moduleId, int pageId, int folderId);
}
}