public Contactscrt ContactUpdate(Contactscrt contactscrt) { var result = new Contactscrt(); var pdscontactscrt = new pdscontactscrtDataSet(); DataRow ttblcontactscrtCriteria = pdscontactscrt.ttblcontactscrt.NewttblcontactscrtRow(); Contactscrt.UpdateRowFromContactscrt(ref ttblcontactscrtCriteria, contactscrt); pdscontactscrt.ttblcontactscrt.AddttblcontactscrtRow((pdscontactscrtDataSet.ttblcontactscrtRow)ttblcontactscrtCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("ContactUpdate - Ascam - Before Call"); StopwatchUtil.Time( () => { using (var poAscamproxy = this.proxyAppObject.CreatePO_ascamproxy()) { this.SetRequiredContextParameters(); poAscamproxy.ContactUpdate(ref pdsContext, ref pdscontactscrt, out cErrorMessage); } }); NLogLoggerP.Info("ContactUpdate - Ascam - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdscontactscrt); if (pdscontactscrt.ttblcontactscrt.Count > 0) { result = Contactscrt.BuildContactscrtFromRow(pdscontactscrt.ttblcontactscrt[0]); } return(result); }
public IEnumerable <Contactscrt> ContactCreate(IEnumerable <Contactscrt> contactscrt) { var results = new List <Contactscrt>(); var pdscontactscrt = new pdscontactscrtDataSet(); foreach (var obj in contactscrt) { DataRow row = pdscontactscrt.ttblcontactscrt.NewttblcontactscrtRow(); Contactscrt.UpdateRowFromContactscrt(ref row, obj); pdscontactscrt.ttblcontactscrt.AddttblcontactscrtRow((pdscontactscrtDataSet.ttblcontactscrtRow)row); } string cErrorMessage = string.Empty; NLogLoggerP.Trace("ContactCreate - Ascam - Before Call"); StopwatchUtil.Time( () => { using (var poAscamproxy = this.proxyAppObject.CreatePO_ascamproxy()) { this.SetRequiredContextParameters(); poAscamproxy.ContactCreate(ref pdsContext, ref pdscontactscrt, out cErrorMessage); } }); NLogLoggerP.Info("ContactCreate - Ascam - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdscontactscrt); foreach (DataRow row in pdscontactscrt.ttblcontactscrt) { results.Add(Contactscrt.BuildContactscrtFromRow(row)); } return(results); }
public Contactscrt ContactUpdate(Contactscrt contactscrt) { return(this.repository.ContactUpdate(contactscrt)); }
public Contactscrt ContactUpdate(Contactscrt contactscrt) { return(this.adapter.ContactUpdate(contactscrt)); }