Ejemplo n.º 1
0
        /// <summary>
        /// Update into XMAdvertisingFee
        /// </summary>
        /// <param name="xmadvertisingfee">XMAdvertisingFee</param>
        public void UpdateXMAdvertisingFee(XMAdvertisingFee xmadvertisingfee)
        {
            if (xmadvertisingfee == null)
            {
                return;
            }

            if (this._context.IsAttached(xmadvertisingfee))
            {
                this._context.XMAdvertisingFees.Attach(xmadvertisingfee);
            }

            this._context.SaveChanges();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Insert into XMAdvertisingFee
        /// </summary>
        /// <param name="xmadvertisingfee">XMAdvertisingFee</param>
        public void InsertXMAdvertisingFee(XMAdvertisingFee xmadvertisingfee)
        {
            if (xmadvertisingfee == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmadvertisingfee))
            {
                this._context.XMAdvertisingFees.AddObject(xmadvertisingfee);
            }

            this._context.SaveChanges();
        }