Example #1
0
        /// <summary>
        /// Permanently delete the current UI template from the data store. This action cannot be undone.
        /// </summary>
        public void Delete()
        {
            using (var repo = new UiTemplateRepository())
            {
                var uiTmplDto = repo.Find(UiTemplateId);

                if (uiTmplDto != null)
                {
                    repo.Delete(uiTmplDto);
                    repo.Save();
                }
            }

            CacheController.RemoveCache(CacheItem.UiTemplates);
        }
Example #2
0
        /// <summary>
        /// Permanently delete the current UI template from the data store. This action cannot be undone.
        /// </summary>
        public void Delete()
        {
            using (var repo = new UiTemplateRepository())
            {
                var uiTmplDto = repo.Find(UiTemplateId);

                if (uiTmplDto != null)
                {
                    repo.Delete(uiTmplDto);
                    repo.Save();
                }
            }

            Factory.ClearAllCaches();
        }
Example #3
0
        /// <summary>
        /// Permanently delete the current UI template from the data store. This action cannot be undone.
        /// </summary>
        public void Delete()
        {
            using (var repo = new UiTemplateRepository())
              {
            var uiTmplDto = repo.Find(UiTemplateId);

            if (uiTmplDto != null)
            {
              repo.Delete(uiTmplDto);
              repo.Save();
            }
              }

            Factory.ClearAllCaches();
        }