public ApsvLookupResponseAPI Lookup(Apvendorlookupcriteria apvendorlookupcriteria) { var result = new ApsvLookupResponseAPI(); var pdsapvendorlookup = new pdsapvendorlookupDataSet(); DataRow ttblapvendorlookupcriteriaCriteria = pdsapvendorlookup.ttblapvendorlookupcriteria.NewttblapvendorlookupcriteriaRow(); Apvendorlookupcriteria.UpdateRowFromApvendorlookupcriteria(ref ttblapvendorlookupcriteriaCriteria, apvendorlookupcriteria); pdsapvendorlookup.ttblapvendorlookupcriteria.AddttblapvendorlookupcriteriaRow((pdsapvendorlookupDataSet.ttblapvendorlookupcriteriaRow)ttblapvendorlookupcriteriaCriteria); string cErrorMessage = string.Empty; bool lMoreRecords = false; NLogLoggerP.Trace("Lookup - Apsv - Before Call"); StopwatchUtil.Time( () => { using (var poApsvproxy = this.proxyAppObject.CreatePO_apsvproxy()) { this.SetRequiredContextParameters(); poApsvproxy.Lookup(ref pdsContext, ref pdsapvendorlookup, out cErrorMessage, out lMoreRecords); } }); NLogLoggerP.Info("Lookup - Apsv - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsapvendorlookup); foreach (DataRow row in pdsapvendorlookup.ttblapvendorlookupresults) { result.apvendorlookupresults.Add(Apvendorlookupresults.BuildApvendorlookupresultsFromRow(row)); } result.lMoreRecords = lMoreRecords; return(result); }
public ApsvLookupResponseAPI Lookup(Apvendorlookupcriteria apvendorlookupcriteria) { return(this.repository.Lookup(apvendorlookupcriteria)); }
public ApsvLookupResponseAPI Lookup(Apvendorlookupcriteria apvendorlookupcriteria) { return(this.adapter.Lookup(apvendorlookupcriteria)); }