Esempio n. 1
0
        public IEnumerable <Messaging> GLETIValidateOffsetAccounts(AsglentryGLETIValidateOffsetAccountsRequestAPI AsglentryGLETIValidateOffsetAccountsRequestAPI)
        {
            var results = new List <Messaging>();

            var pdsgletioffsetaccts = new pdsgletioffsetacctsDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblgletioffsetacctinfoRow = pdsgletioffsetaccts.ttblgletioffsetacctinfo.NewttblgletioffsetacctinfoRow();

            Gletioffsetacctinfo.UpdateRowFromGletioffsetacctinfo(ref ttblgletioffsetacctinfoRow, AsglentryGLETIValidateOffsetAccountsRequestAPI.gletioffsetacctinfo);
            pdsgletioffsetaccts.ttblgletioffsetacctinfo.AddttblgletioffsetacctinfoRow((pdsgletioffsetacctsDataSet.ttblgletioffsetacctinfoRow)ttblgletioffsetacctinfoRow);

            foreach (var obj in AsglentryGLETIValidateOffsetAccountsRequestAPI.gletioffsetaccts)
            {
                DataRow ttblgletioffsetacctsRow = pdsgletioffsetaccts.ttblgletioffsetaccts.NewttblgletioffsetacctsRow();
                Gletioffsetaccts.UpdateRowFromGletioffsetaccts(ref ttblgletioffsetacctsRow, obj);
                pdsgletioffsetaccts.ttblgletioffsetaccts.AddttblgletioffsetacctsRow((pdsgletioffsetacctsDataSet.ttblgletioffsetacctsRow)ttblgletioffsetacctsRow);
            }


            NLogLoggerP.Trace("GLETIValidateOffsetAccounts - Asglentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsglentryproxy.GLETIValidateOffsetAccounts(ref pdsContext, pdsgletioffsetaccts, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GLETIValidateOffsetAccounts - Asglentry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }
Esempio n. 2
0
 public IEnumerable <Messaging> GLETIValidateOffsetAccounts(AsglentryGLETIValidateOffsetAccountsRequestAPI AsglentryGLETIValidateOffsetAccountsRequestAPI)
 {
     return(this.repository.GLETIValidateOffsetAccounts(AsglentryGLETIValidateOffsetAccountsRequestAPI));
 }