Exemplo n.º 1
0
        public CmspLookupResponseAPI Lookup(Cmprospectlookupcriteria cmprospectlookupcriteria)
        {
            var result = new CmspLookupResponseAPI();

            var pdscmprospectlookup = new pdscmprospectlookupDataSet();

            DataRow ttblcmprospectlookupcriteriaCriteria = pdscmprospectlookup.ttblcmprospectlookupcriteria.NewttblcmprospectlookupcriteriaRow();

            Cmprospectlookupcriteria.UpdateRowFromCmprospectlookupcriteria(ref ttblcmprospectlookupcriteriaCriteria, cmprospectlookupcriteria);
            pdscmprospectlookup.ttblcmprospectlookupcriteria.AddttblcmprospectlookupcriteriaRow((pdscmprospectlookupDataSet.ttblcmprospectlookupcriteriaRow)ttblcmprospectlookupcriteriaCriteria);

            string cErrorMessage = string.Empty;
            bool   lMoreRecords  = false;


            NLogLoggerP.Trace("Lookup - Cmsp - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poCmspproxy = this.proxyAppObject.CreatePO_cmspproxy())
                {
                    this.SetRequiredContextParameters();
                    poCmspproxy.Lookup(ref pdsContext, ref pdscmprospectlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Cmsp - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdscmprospectlookup);

            foreach (DataRow row in pdscmprospectlookup.ttblcmprospectlookupresults)
            {
                result.cmprospectlookupresults.Add(Cmprospectlookupresults.BuildCmprospectlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Exemplo n.º 2
0
 public CmspLookupResponseAPI Lookup(Cmprospectlookupcriteria cmprospectlookupcriteria)
 {
     return(this.repository.Lookup(cmprospectlookupcriteria));
 }
Exemplo n.º 3
0
 public CmspLookupResponseAPI Lookup(Cmprospectlookupcriteria cmprospectlookupcriteria)
 {
     return(this.adapter.Lookup(cmprospectlookupcriteria));
 }