Esempio n. 1
0
        public async Task <AgentLocationMoResponse> GetAgentLocationMoAsync(AgentLocationMoRequest agentLocationMoRequest)
        {
            agentLocationMoRequest.ThrowIfNull(nameof(agentLocationMoRequest));

            var agentLocationMoResponse = await PartnerServiceProxyFactory.UseService(service => service.getAgentLocationMoAsync(agentLocationMoRequest.ToService()));

            return(agentLocationMoResponse.getAgentLocationMoResponse.ToDomain());
        }
Esempio n. 2
0
        public AgentLocationMoResponse GetAgentLocationMo(AgentLocationMoRequest agentLocationMoRequest)
        {
            Task <AgentLocationMoResponse> task = Task.Run(() => this.GetAgentLocationMoAsync(agentLocationMoRequest));

            task.Wait();

            return(task.Result);
        }
Esempio n. 3
0
        private List <AgentVm> GetLocationsPerMainOffice()
        {
            var req = new AgentLocationMoRequest();
            var processInstruction = new MoneyGram.PartnerService.DomainModel.ProcessingInstruction();

            req.header = new MoneyGram.PartnerService.DomainModel.Header();
            req.header.ProcessingInstruction = processInstruction;
            req.AgentId = Convert.ToDecimal(_authUser.MainOfficeAgentId);

            req.header.ProcessingInstruction.Action = "GetAgentLocationMo";

            var contentAgentLocationMoResponse = _partnerIntegration.GetAgentLocationsForMo(req);

            return(contentAgentLocationMoResponse.ToVm().Agents);
        }
Esempio n. 4
0
 public virtual AgentLocationMoResponse GetAgentLocationMo(AgentLocationMoRequest agentLocationMoRequest)
 {
     return(_partnerService.GetAgentLocationMo(agentLocationMoRequest));
 }
Esempio n. 5
0
 public Task <AgentLocationMoResponse> GetAgentLocationMoAsync(AgentLocationMoRequest agentLocationMoRequest)
 {
     return(_partnerService.GetAgentLocationMoAsync(agentLocationMoRequest));
 }
Esempio n. 6
0
 public AgentLocationMoResponse GetAgentLocationsForMo(AgentLocationMoRequest agentLocationMoRequest)
 {
     return(_partnerServiceRepository.GetAgentLocationMo(agentLocationMoRequest));
 }