Esempio n. 1
0
 public void DeleteField(Data.Guid contentTypeGuid, int fieldKey)
 {
     CmsContentTypeField field = GetContentTypeField(contentTypeGuid, fieldKey);
     if (field != null)
     {
         CmsContentTypeDao dao = new CmsContentTypeDao();
         using (Transaction tx = new Transaction())
         {
             dao.Delete<CmsContentTypeField>(field);
             tx.Commit();
         }
     }
 }
Esempio n. 2
0
 public void Delete(CmsContentType contentType)
 {
     if (contentType != null)
     {
         CmsContentTypeDao dao = new CmsContentTypeDao();
         using (Transaction tx = new Transaction())
         {
             dao.Delete<CmsContentType>(contentType);
             tx.Commit();
         }
     }
 }