Datenerfassung;

This commit is contained in:
2026-05-29 13:05:15 +02:00
parent 818377c0a8
commit fe11b715a6
3 changed files with 201 additions and 1 deletions
+10
View File
@@ -97,4 +97,14 @@ public class WorkspaceService
return workspace;
}
public async Task SaveFaktAsync(AnalysisFakt fakt)
{
// Unsere elegante Hilfsmethode von vorhin füllt OwnerId, CreatedBy und CreatedAt!
await EnrichWithAuditDataAsync(fakt);
using var session = _store.OpenAsyncSession();
await session.StoreAsync(fakt);
await session.SaveChangesAsync();
}
}