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

            if (this._context.IsAttached(postshoplist))
            {
                this._context.Postshoplists.Attach(postshoplist);
            }

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

            if (!this._context.IsAttached(postshoplist))
            {
                this._context.Postshoplists.AddObject(postshoplist);
            }

            this._context.SaveChanges();
        }