Apply Fix on Open Positioons and Well Tested ...

This commit is contained in:
2025-07-18 05:22:40 +03:30
parent f7b2e3ecbc
commit 277575f518
2 changed files with 22 additions and 6 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ namespace xIdentityService.Constants
// //
#region Open Actions ... #region Open Actions ...
[StringValue("Open")] [StringValue("Account/Open")]
Open, Open,
#endregion #endregion
} }
+21 -5
View File
@@ -92,7 +92,7 @@ namespace xIdentityService.Providers
// //
// Decript Recieve Response ... // Decript Recieve Response ...
var responseJson = SecurityProvider.Decrypt(response.Model); var responseJson = response.Model; // SecurityProvider.Decrypt(response.Model);
if (responseJson.IsNullOrEmpty()) if (responseJson.IsNullOrEmpty())
{ {
XException.ActionFailed.Throw(); XException.ActionFailed.Throw();
@@ -202,12 +202,20 @@ namespace xIdentityService.Providers
// Now we Have to Converts Repose Payload to Result Model ... // Now we Have to Converts Repose Payload to Result Model ...
// Note that the respose Model's payload here is Decrypted and // Note that the respose Model's payload here is Decrypted and
// actually is Json Representation of Result Model ... // actually is Json Representation of Result Model ...
var result = response.Payload.FromJSON<XOpenActionUserInfoDto>(); var requestModel = response.Payload.FromJSON<XOpenActionRequestDto>();
if (result.IsNull()) if (requestModel.IsNull())
{ {
XException.ActionFailed.Throw(); XException.ActionFailed.Throw();
} }
//
var resultJson = SecurityProvider.Decrypt(requestModel.Payload);
var result = resultJson.FromJSON<XOpenActionUserInfoDto>();
if (result.IsNull())
{
XException.NotFound.Throw();
}
// //
return result; return result;
} }
@@ -294,12 +302,20 @@ namespace xIdentityService.Providers
// Now we Have to Converts Repose Payload to Result Model ... // Now we Have to Converts Repose Payload to Result Model ...
// Note that the respose Model's payload here is Decrypted and // Note that the respose Model's payload here is Decrypted and
// actually is Json Representation of Result Model ... // actually is Json Representation of Result Model ...
var result = response.Payload.FromJSON<IEnumerable<XOpenActionUserInfoDto>>(); var requestModel = response.Payload.FromJSON<XOpenActionRequestDto>();
if (result.IsNull()) if (requestModel.IsNull())
{ {
XException.ActionFailed.Throw(); XException.ActionFailed.Throw();
} }
//
var resultJson = SecurityProvider.Decrypt(requestModel.Payload);
var result = resultJson.FromJSON<IEnumerable<XOpenActionUserInfoDto>>();
if (result.IsNull())
{
XException.NotFound.Throw();
}
// //
return result; return result;
} }