Apply Fix on Open Positioons and Well Tested ...
This commit is contained in:
@@ -198,7 +198,7 @@ namespace xIdentityService.Constants
|
|||||||
|
|
||||||
//
|
//
|
||||||
#region Open Actions ...
|
#region Open Actions ...
|
||||||
[StringValue("Open")]
|
[StringValue("Account/Open")]
|
||||||
Open,
|
Open,
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user