Enhance ReadByUsernameAsync with new query parameters

Updated IEnvelopeReceiverService to include EnvelopeQuery and ReadReceiverQuery in ReadByUsernameAsync for improved filtering capabilities. Modified EnvelopeReceiverService to implement these changes, allowing for more precise data retrieval. Updated EnvelopeReceiverController to pass the new parameters when calling the service method.
This commit is contained in:
Developer 02
2025-05-07 00:17:18 +02:00
parent b9c4f7da1c
commit a7e4d6e58f
3 changed files with 26 additions and 4 deletions

View File

@@ -85,8 +85,10 @@ public class EnvelopeReceiverController : ControllerBase
return await _erService.ReadByUsernameAsync(
username: username,
min_status: envelopeReceiver.Status?.Min ?? envelopeReceiver.Envelope?.Status,
max_status:envelopeReceiver.Status?.Max ?? envelopeReceiver.Envelope?.Status,
min_status: envelopeReceiver.Status?.Min,
max_status:envelopeReceiver.Status?.Max,
envelopeQuery: envelopeReceiver.Envelope,
receiverQuery: envelopeReceiver.Receiver,
ignore_statuses: envelopeReceiver.Status?.Ignore ?? Array.Empty<int>())
.ThenAsync(
Success: Ok,