Reporting: Add UserName

This commit is contained in:
2026-02-19 16:37:45 +01:00
parent aae330f46a
commit 235ab23ed4
11 changed files with 137 additions and 101 deletions

View File

@@ -19,7 +19,7 @@ namespace SZUAbsolventenverein.Module.ReportSystem.Services
public void Report(IReportable reportable, string note)
{
CreateReportAsync(new Reporting
{ ModuleId = reportable.ModuleID, EntityId = reportable.EntityID, Note = note, Reason = "Default Reason" });
{ ModuleId = reportable.ModuleID, EntityId = reportable.EntityID, Note = note, UserName = reportable.UserName, Reason = "Default Reason" });
}
public Task<Reporting> CreateReportAsync(Reporting reporting)