Пример #1
0
        /// <summary>
        /// Permanently delete the current template from the data store. This action cannot be undone.
        /// </summary>
        public void Delete()
        {
            using (var repo = new MediaTemplateRepository())
            {
                var tmplDto = repo.Find(MediaTemplateId);

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

            HelperFunctions.PurgeCache();
        }
Пример #2
0
        /// <summary>
        /// Permanently delete the current template from the data store. This action cannot be undone.
        /// </summary>
        public void Delete()
        {
            using (var repo = new MediaTemplateRepository())
            {
                var tmplDto = repo.Find(MediaTemplateId);

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

            CacheController.RemoveMediaTemplatesFromCache();
        }
Пример #3
0
        /// <summary>
        /// Permanently delete the current template from the data store. This action cannot be undone.
        /// </summary>
        public void Delete()
        {
            using (var repo = new MediaTemplateRepository())
            {
                var tmplDto = repo.Find(MediaTemplateId);

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

            HelperFunctions.PurgeCache();
        }