public async Task <POELocationsForMoResponse> GetPOELocationsForMoAsync(POELocationsForMoRequest poeLocationForMoRequest) { poeLocationForMoRequest.ThrowIfNull(nameof(poeLocationForMoRequest)); var poeLocationForMoResponse = await PartnerServiceProxyFactory.UseService(service => service.getPOELocationsForMoAsync(poeLocationForMoRequest.ToPOELocationsForMoRequest1Service())); return(poeLocationForMoResponse.getPOELocationsForMoResponse.ToDomain()); }
public POELocationsForMoResponse GetPOELocationsForMo(POELocationsForMoRequest poeLocationForMoRequest) { Task <POELocationsForMoResponse> task = Task.Run(() => this.GetPOELocationsForMoAsync(poeLocationForMoRequest)); task.Wait(); return(task.Result); }
public List <AgentVm> LocationsForMainOffice(string mainOfficeId, string subLevelNameId = null) { mainOfficeId.ThrowIfNullOrEmpty(nameof(mainOfficeId)); var req = new POELocationsForMoRequest { header = new Header { ProcessingInstruction = new ProcessingInstruction { Action = "GetPOELocationsForMo", RollbackTransaction = false } }, MainOfficeId = Convert.ToDecimal(mainOfficeId), SubLevelNameId = subLevelNameId, POECode = null }; var locationsResponse = _partnerIntegration.GetPOELocationsForMo(req); return(locationsResponse?.ToVm()?.Agents); }
public Task <POELocationsForMoResponse> GetPOELocationsForMoAsync(POELocationsForMoRequest poeLocationForMoRequest) { return(_partnerService.GetPOELocationsForMoAsync(poeLocationForMoRequest)); }
public virtual POELocationsForMoResponse GetPOELocationsForMo(POELocationsForMoRequest poeLocationForMoRequest) { return(_partnerService.GetPOELocationsForMo(poeLocationForMoRequest)); }
public POELocationsForMoResponse GetPOELocationsForMo(POELocationsForMoRequest poeLocationForMoRequest) { return(_partnerServiceRepository.GetPOELocationsForMo(poeLocationForMoRequest)); }