public async Task <IActionResult> SaveReport([FromQuery] Guid template) { var report = StiNetCoreDesigner.GetReportObject(this); await using var ms = new MemoryStream(); report.Save(ms); ms.Position = 0; _memoryCache.Set(template.ToString("D"), ms.ToArray()); return(await StiNetCoreDesigner.SaveReportResultAsync(this)); }
private async Task <IActionResult> SaveReport(Guid key) { var report = StiNetCoreDesigner.GetReportObject(this); await using var ms = new MemoryStream(); report.Save(ms); ms.Position = 0; _memoryCache.Set(key.ToString("D"), ms.ToArray()); return(await StiNetCoreDesigner.SaveReportResultAsync(this)); }