Ejemplo n.º 1
0
        private void SaveNewContent(int statusId)
        {
            Content newContent = new Content();

            newContent.ModuleId = _moduleId;
            newContent.Culture  = _culture;
            newContent.Text     = ContentTextEditor.Text;
            newContent.Modified = DateTime.Now;
            newContent.StatusId = statusId;
            newContent.CreateContent();
        }
Ejemplo n.º 2
0
        protected void Restore_Click(object sender, EventArgs e)
        {
            ArchiveExistingContent();

            //publish the selected archived content
            Content newContent = Content.GetContentByContentVersionId(
                int.Parse(ContentVersions.SelectedValue));

            newContent.Modified = DateTime.Now;
            newContent.StatusId = 2;//2=active

            newContent.CreateContent();

            leavePage();
        }