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()); }
public AgentLocationMoResponse GetAgentLocationMo(AgentLocationMoRequest agentLocationMoRequest) { Task <AgentLocationMoResponse> task = Task.Run(() => this.GetAgentLocationMoAsync(agentLocationMoRequest)); task.Wait(); return(task.Result); }
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); }
public virtual AgentLocationMoResponse GetAgentLocationMo(AgentLocationMoRequest agentLocationMoRequest) { return(_partnerService.GetAgentLocationMo(agentLocationMoRequest)); }
public Task <AgentLocationMoResponse> GetAgentLocationMoAsync(AgentLocationMoRequest agentLocationMoRequest) { return(_partnerService.GetAgentLocationMoAsync(agentLocationMoRequest)); }
public AgentLocationMoResponse GetAgentLocationsForMo(AgentLocationMoRequest agentLocationMoRequest) { return(_partnerServiceRepository.GetAgentLocationMo(agentLocationMoRequest)); }