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(); } } }
public void Delete(CmsContentType contentType) { if (contentType != null) { CmsContentTypeDao dao = new CmsContentTypeDao(); using (Transaction tx = new Transaction()) { dao.Delete<CmsContentType>(contentType); tx.Commit(); } } }