Export excel sheer

This commit is contained in:
Michał Zieliński
2023-08-23 17:30:25 +02:00
parent ebf67b8d88
commit be8e156ca3
10 changed files with 32 additions and 38 deletions

View File

@@ -112,10 +112,10 @@ namespace WebAPI.Controllers
public IActionResult ExportToGoogleSheet(Guid id)
{
Layer layer = db.Layers
.Include(x => x.Records)
.Include(x => x.Records!.OrderByDescending(x => x.Code))
.Where(x => x.Id == id && !x.IsDeleted).First();
var export = new googleSheetExport(googleDriveHelper, googleSheetValues);
var export = new googleSheetExport(googleDriveHelper, googleSheetValues, configuration);
export.export(layer);
return Ok(true);
}