public PoehLookupResponseAPI Lookup(Poorderlookupcriteria poorderlookupcriteria) { var result = new PoehLookupResponseAPI(); var pdspoorderlookup = new pdspoorderlookupDataSet(); DataRow ttblpoorderlookupcriteriaCriteria = pdspoorderlookup.ttblpoorderlookupcriteria.NewttblpoorderlookupcriteriaRow(); Poorderlookupcriteria.UpdateRowFromPoorderlookupcriteria(ref ttblpoorderlookupcriteriaCriteria, poorderlookupcriteria); pdspoorderlookup.ttblpoorderlookupcriteria.AddttblpoorderlookupcriteriaRow((pdspoorderlookupDataSet.ttblpoorderlookupcriteriaRow)ttblpoorderlookupcriteriaCriteria); string cErrorMessage = string.Empty; bool lMoreRecords = false; NLogLoggerP.Trace("Lookup - Poeh - Before Call"); StopwatchUtil.Time( () => { using (var poPoehproxy = this.proxyAppObject.CreatePO_poehproxy()) { this.SetRequiredContextParameters(); poPoehproxy.Lookup(ref pdsContext, ref pdspoorderlookup, out cErrorMessage, out lMoreRecords); } }); NLogLoggerP.Info("Lookup - Poeh - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdspoorderlookup); foreach (DataRow row in pdspoorderlookup.ttblpoorderlookupresults) { result.poorderlookupresults.Add(Poorderlookupresults.BuildPoorderlookupresultsFromRow(row)); } result.lMoreRecords = lMoreRecords; return(result); }
public PoehLookupResponseAPI Lookup(Poorderlookupcriteria poorderlookupcriteria) { return(this.adapter.Lookup(poorderlookupcriteria)); }
public PoehLookupResponseAPI Lookup(Poorderlookupcriteria poorderlookupcriteria) { return(this.repository.Lookup(poorderlookupcriteria)); }