示例#1
0
        /// <summary>
        /// Persists a new instance of item. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            int newID = 0;

            newID = DBItems.Create(
                siteGuid,
                featureGuid,
                moduleGuid,
                moduleID,
                definitionGuid,
                itemGuid,
                sortOrder,
                createdUtc,
                lastModUtc,
                viewRoles,
                editRoles);

            this.itemID = newID;

            bool result = (newID > 0);

            if (result)
            {
                ContentChangedEventArgs e = new ContentChangedEventArgs();
                OnContentChanged(e);
            }

            return(result);
        }
示例#2
0
        /// <summary>
        /// Persists a new instance of item. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            int newID = 0;

            newID = DBItems.Create(
                this.siteGuid,
                this.featureGuid,
                this.moduleGuid,
                this.moduleID,
                this.definitionGuid,
                this.itemGuid,
                this.sortOrder,
                this.createdUtc,
                this.lastModUtc);

            this.itemID = newID;

            bool result = (newID > 0);

            if (result)
            {
                ContentChangedEventArgs e = new ContentChangedEventArgs();
                OnContentChanged(e);
            }

            return(result);
        }