/// <summary>
        /// Update into CWPlatformSpending
        /// </summary>
        /// <param name="cwplatformspending">CWPlatformSpending</param>
        public void UpdateCWPlatformSpending(CWPlatformSpending cwplatformspending)
        {
            if (cwplatformspending == null)
            {
                return;
            }

            if (this._context.IsAttached(cwplatformspending))
            {
                this._context.CWPlatformSpendings.Attach(cwplatformspending);
            }

            this._context.SaveChanges();
        }
        /// <summary>
        /// Insert into CWPlatformSpending
        /// </summary>
        /// <param name="cwplatformspending">CWPlatformSpending</param>
        public void InsertCWPlatformSpending(CWPlatformSpending cwplatformspending)
        {
            if (cwplatformspending == null)
            {
                return;
            }

            if (!this._context.IsAttached(cwplatformspending))
            {
                this._context.CWPlatformSpendings.AddObject(cwplatformspending);
            }

            this._context.SaveChanges();
        }