refactor(history): introduce extension method and remove AutoMapper dependency

- Added `CountHistoryQueryExtensions.AnyHistoryAsync` for cleaner query usage via `ISender`.
- Removed `IMapper` from `CountHistoryQueryHandler` as it was unused.
- Removed unnecessary `using` directives to simplify imports.
- Kept query handling logic intact.
This commit is contained in:
2025-11-14 11:57:16 +01:00
parent 3b24755c35
commit 629b02863b
2 changed files with 26 additions and 13 deletions

View File

@@ -13,10 +13,10 @@ public record HistoryQueryBase
/// Die eindeutige Kennung des Umschlags.
/// </summary>
[Required]
public int EnvelopeId { get; init; }
public int EnvelopeId { get; set; }
/// <summary>
/// Der Include des Umschlags, der abgefragt werden soll. Kann optional angegeben werden, um die Ergebnisse zu filtern.
/// </summary>
public EnvelopeStatus? Status { get; init; }
public EnvelopeStatus? Status { get; set; }
}