public void UpdateTransactionFee(IDataService dataService, ITransactionFeeRecord record)
        {
            var updateRecord = new ccllc_transactionfee()
            {
                Id               = record.Id,
                ccllc_Quantity   = record.Quantity,
                ccllc_UnitPrice  = new Microsoft.Xrm.Sdk.Money(record.UnitPrice),
                ccllc_TotalPrice = new Microsoft.Xrm.Sdk.Money(record.TotalPrice)
            };

            dataService.ToOrgService().Update(updateRecord);
        }
        public ITransactionFeeRecord CreateTransactionFee(IDataService dataService, IRecordPointer <Guid> transactionId, IRecordPointer <Guid> feeId, string name, decimal quantity, decimal?unitPrice = null, decimal?totalPrice = null)
        {
            var record = new ccllc_transactionfee
            {
                ccllc_TransactionId = transactionId.ToEntityReference(),
                ccllc_FeeId         = feeId.ToEntityReference(),
                ccllc_name          = name,
            };

            record.Id = dataService.ToOrgService().Create(record);

            return(record);
        }