Пример #1
0
        void DeleteContent(long contentId)
        {
            AWAPI_BusinessLibrary.library.ContentLibrary contLib = new AWAPI_BusinessLibrary.library.ContentLibrary();
            contLib.Delete(contentId);

            ResetControls();
            PopulateContentList();
        }
Пример #2
0
        protected void btnDeleteContentForm__Click(object sender, ImageClickEventArgs e)
        {
            _contentLib.Delete(Convert.ToInt64(_contentId.Text));
            ResetContentControls();
            PopulateFields(Convert.ToInt64(_formFeature_formId.Text), 0);
            PopulateChildContentList(Convert.ToInt64(_formFeature_contentId.Text));

            AdminMaster.WriteMessage(AWAPI.Admin.AdminMaster.MessageType.INFO, "Content has been deleted.");
        }