/// <summary> /// Persist this template object to the data store. /// </summary> public void Save() { using (var repo = new MediaTemplateRepository()) { repo.Save(this); } HelperFunctions.PurgeCache(); }
/// <summary> /// Persist this template object to the data store. /// </summary> public void Save() { using (var repo = new MediaTemplateRepository()) { repo.Save(this); } CacheController.RemoveMediaTemplatesFromCache(); }
/// <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(); }
/// <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(); }
/// <summary> /// Persist this template object to the data store. /// </summary> public void Save() { using (var repo = new MediaTemplateRepository()) { repo.Save(this); } HelperFunctions.PurgeCache(); }
/// <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(); }