public bool Add(MPUSettlementStatusInfo mPUSettlementStatusInfo) { MPUSettlementStatusCollections mPUSettlementStatusCollections = new MPUSettlementStatusCollections(); mPUSettlementStatusCollections.Add(mPUSettlementStatusInfo); return(Add(mPUSettlementStatusCollections)); }
public bool Add(MPUSettlementStatusCollections mPUSettlementStatusCollections) { string uniqueKey = ""; bool _return = false; try { DataController.StartTransaction(); foreach (MPUSettlementStatusInfo mPUSettlementStatusInfo in mPUSettlementStatusCollections) { uniqueKey = mPUSettlementStatusInfo.MPUSettlementID; _return = DataController.Insert(mPUSettlementStatusInfo.MPUSettlementID, mPUSettlementStatusInfo.MPUIncomingAmount, mPUSettlementStatusInfo.MPUOutgoingAmount, mPUSettlementStatusInfo.MPUIncomingFee, mPUSettlementStatusInfo.MPUOutgoingFee, mPUSettlementStatusInfo.CBSIncomingAmount, mPUSettlementStatusInfo.CBSOutgoingAmount, mPUSettlementStatusInfo.CBSIncomingFee, mPUSettlementStatusInfo.CBSOutgoingFee, mPUSettlementStatusInfo.TransactionNo, mPUSettlementStatusInfo.TransactionDate, mPUSettlementStatusInfo.SettlementDate, mPUSettlementStatusInfo.CreatedDate, mPUSettlementStatusInfo.UPdatedDate, mPUSettlementStatusInfo.STATUS); } DataController.CommitTransaction(); } catch (Exception ex) { DataController.RollbackTransaction(); return(_return); } return(_return); }