Apply Fix on Open Positioons and Well Tested ...
This commit is contained in:
@@ -92,7 +92,7 @@ namespace xIdentityService.Providers
|
||||
|
||||
//
|
||||
// Decript Recieve Response ...
|
||||
var responseJson = SecurityProvider.Decrypt(response.Model);
|
||||
var responseJson = response.Model; // SecurityProvider.Decrypt(response.Model);
|
||||
if (responseJson.IsNullOrEmpty())
|
||||
{
|
||||
XException.ActionFailed.Throw();
|
||||
@@ -202,12 +202,20 @@ namespace xIdentityService.Providers
|
||||
// Now we Have to Converts Repose Payload to Result Model ...
|
||||
// Note that the respose Model's payload here is Decrypted and
|
||||
// actually is Json Representation of Result Model ...
|
||||
var result = response.Payload.FromJSON<XOpenActionUserInfoDto>();
|
||||
if (result.IsNull())
|
||||
var requestModel = response.Payload.FromJSON<XOpenActionRequestDto>();
|
||||
if (requestModel.IsNull())
|
||||
{
|
||||
XException.ActionFailed.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
var resultJson = SecurityProvider.Decrypt(requestModel.Payload);
|
||||
var result = resultJson.FromJSON<XOpenActionUserInfoDto>();
|
||||
if (result.IsNull())
|
||||
{
|
||||
XException.NotFound.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
@@ -294,12 +302,20 @@ namespace xIdentityService.Providers
|
||||
// Now we Have to Converts Repose Payload to Result Model ...
|
||||
// Note that the respose Model's payload here is Decrypted and
|
||||
// actually is Json Representation of Result Model ...
|
||||
var result = response.Payload.FromJSON<IEnumerable<XOpenActionUserInfoDto>>();
|
||||
if (result.IsNull())
|
||||
var requestModel = response.Payload.FromJSON<XOpenActionRequestDto>();
|
||||
if (requestModel.IsNull())
|
||||
{
|
||||
XException.ActionFailed.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
var resultJson = SecurityProvider.Decrypt(requestModel.Payload);
|
||||
var result = resultJson.FromJSON<IEnumerable<XOpenActionUserInfoDto>>();
|
||||
if (result.IsNull())
|
||||
{
|
||||
XException.NotFound.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user