/// <summary>
        /// Update into XMQuestionCategory
        /// </summary>
        /// <param name="xmquestioncategory">XMQuestionCategory</param>
        public void UpdateXMQuestionCategory(XMQuestionCategory xmquestioncategory)
        {
            if (xmquestioncategory == null)
            {
                return;
            }

            if (this._context.IsAttached(xmquestioncategory))
            {
                this._context.XMQuestionCategories.Attach(xmquestioncategory);
            }

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

            if (!this._context.IsAttached(xmquestioncategory))
            {
                this._context.XMQuestionCategories.AddObject(xmquestioncategory);
            }

            this._context.SaveChanges();
        }