public async Task <LocationsForMoResponse> GetLocationsForMoAsync(LocationsForMoRequest locationForMoRequest) { locationForMoRequest.ThrowIfNull(nameof(locationForMoRequest)); var locationForMoResponse = await PartnerServiceProxyFactory.UseService(service => service.getLocationsForMoAsync(locationForMoRequest.ToLocationsForMoRequest1Service())); return(locationForMoResponse.getLocationsForMoResponse.ToDomain()); }
public LocationsForMoResponse GetLocationsForMo(LocationsForMoRequest locationForMoRequest) { Task <LocationsForMoResponse> task = Task.Run(() => this.GetLocationsForMoAsync(locationForMoRequest)); task.Wait(); return(task.Result); }
private List <AgentVm> GetLocationsForMo(LocationRequest poeLocRequest) { var req = new LocationsForMoRequest(); var header = new MoneyGram.PartnerService.DomainModel.Header(); var processInstruction = new MoneyGram.PartnerService.DomainModel.ProcessingInstruction(); req.header = header; req.header.ProcessingInstruction = processInstruction; req.header.ProcessingInstruction.Action = "GetLocationsForMo"; req.MainOfficeId = poeLocRequest.MainOfficeId; req.StoreNameNumberAgentId = poeLocRequest.StoreNameNumberAgentId ?? string.Empty; req.SubLevelNameId = poeLocRequest.SubLevelNameId ?? string.Empty; req.City = poeLocRequest.City ?? string.Empty; req.StateProvince = poeLocRequest.StateProvince ?? string.Empty; req.Country = poeLocRequest.Country ?? string.Empty; req.ZipCode = poeLocRequest.ZipCode ?? string.Empty; var searchedLocationsResp = _partnerIntegration.GetLocationsForMo(req); return(searchedLocationsResp.ToVm().Agents); }
public Task <LocationsForMoResponse> GetLocationsForMoAsync(LocationsForMoRequest locationForMoRequest) { return(_partnerService.GetLocationsForMoAsync(locationForMoRequest)); }
public virtual LocationsForMoResponse GetLocationsForMo(LocationsForMoRequest locationForMoRequest) { return(_partnerService.GetLocationsForMo(locationForMoRequest)); }
public LocationsForMoResponse GetLocationsForMo(LocationsForMoRequest locationForMoRequest) { return(_partnerServiceRepository.GetLocationsForMo(locationForMoRequest)); }