Add error handling and update history query logic
- Introduced a using directive for exceptions in DocumentCreateReadSQL.cs. - Enhanced CreateParmas method with try-catch for base64 conversion errors, throwing BadRequestException on failure. - Added switch statement in HistoryController.cs to manage Related property in ReadHistoryQuery, setting flags for receiver and sender.
This commit is contained in:
@@ -109,9 +109,7 @@ public class HistoryController : ControllerBase
|
||||
{
|
||||
bool withReceiver = false;
|
||||
bool withSender = false;
|
||||
|
||||
|
||||
|
||||
|
||||
switch (history.Related)
|
||||
{
|
||||
case ReferenceType.Receiver:
|
||||
|
||||
Reference in New Issue
Block a user