private async Task <Agent> GetNskAgent(long agentId)
        {
            var getAgentResponse = await _client.GetAgentAsync(new GetAgentRequest
            {
                ContractVersion        = _navApiContractVer,
                MessageContractVersion = _navMsgContractVer,
                Signature = await _sessionBag.Signature(),
                EnableExceptionStackTrace = false,
                GetAgentReqData           = new GetAgentRequestData
                {
                    AgentID    = agentId,
                    GetAgentBy = nskCommonEnum.GetAgentBy.AgentID,
                    GetDetails = true
                }
            });

            return(getAgentResponse.Agent);
        }
        private async Task <Agent> GetAgent(long agentId)
        {
            var response = await _agentClient.GetAgentAsync(new GetAgentRequest
            {
                ContractVersion        = _navApiContractVer,
                MessageContractVersion = _navMsgContractVer,
                Signature = await _sessionBag.Signature(),
                EnableExceptionStackTrace = false,
                GetAgentReqData           = new nskam.GetAgentRequestData
                {
                    AgentID    = agentId,
                    GetAgentBy = GetAgentBy.AgentID,
                    GetDetails = true
                }
            });

            return(Mapper.Map <Agent>(response.Agent));
        }