Exemple #1
0
        /// <summary>
        /// Update into XMSaleReturn
        /// </summary>
        /// <param name="xmsalereturn">XMSaleReturn</param>
        public void UpdateXMSaleReturn(XMSaleReturn xmsalereturn)
        {
            if (xmsalereturn == null)
            {
                return;
            }

            if (this._context.IsAttached(xmsalereturn))
            {
                this._context.XMSaleReturns.Attach(xmsalereturn);
            }

            this._context.SaveChanges();
        }
Exemple #2
0
        /// <summary>
        /// Insert into XMSaleReturn
        /// </summary>
        /// <param name="xmsalereturn">XMSaleReturn</param>
        public void InsertXMSaleReturn(XMSaleReturn xmsalereturn)
        {
            if (xmsalereturn == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmsalereturn))
            {
                this._context.XMSaleReturns.AddObject(xmsalereturn);
            }

            this._context.SaveChanges();
        }