public PdscmLookupResponseAPI Lookup(Pdscmlookupcriteria pdscmlookupcriteria) { var result = new PdscmLookupResponseAPI(); var pdspdscmlookup = new pdspdscmlookupDataSet(); DataRow ttblpdscmlookupcriteriaCriteria = pdspdscmlookup.ttblpdscmlookupcriteria.NewttblpdscmlookupcriteriaRow(); Pdscmlookupcriteria.UpdateRowFromPdscmlookupcriteria(ref ttblpdscmlookupcriteriaCriteria, pdscmlookupcriteria); pdspdscmlookup.ttblpdscmlookupcriteria.AddttblpdscmlookupcriteriaRow((pdspdscmlookupDataSet.ttblpdscmlookupcriteriaRow)ttblpdscmlookupcriteriaCriteria); string cErrorMessage = string.Empty; bool lMoreRecords = false; NLogLoggerP.Trace("Lookup - Pdscm - Before Call"); StopwatchUtil.Time( () => { using (var poPdscmproxy = this.proxyAppObject.CreatePO_pdscmproxy()) { this.SetRequiredContextParameters(); poPdscmproxy.Lookup(ref pdsContext, ref pdspdscmlookup, out cErrorMessage, out lMoreRecords); } }); NLogLoggerP.Info("Lookup - Pdscm - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdspdscmlookup); foreach (DataRow row in pdspdscmlookup.ttblpdscmlookupresults) { result.pdscmlookupresults.Add(Pdscmlookupresults.BuildPdscmlookupresultsFromRow(row)); } result.lMoreRecords = lMoreRecords; return(result); }
public PdscmLookupResponseAPI Lookup(Pdscmlookupcriteria pdscmlookupcriteria) { return(this.repository.Lookup(pdscmlookupcriteria)); }
public PdscmLookupResponseAPI Lookup(Pdscmlookupcriteria pdscmlookupcriteria) { return(this.adapter.Lookup(pdscmlookupcriteria)); }