public static void DeleteContentTemplateAndAttachement(int contentTemplateID)
        {
            Int32 totalRow;
            try
            {
                ContentTemplateAttachementCollection contentTemplateAttachementCollection = null;

                contentTemplateAttachementCollection = ContentTemplateAttachementService.GetContentTemplateAttachementList(contentTemplateID, ContentTemplateAttachementColumns.ModifiedDate, "DESC", 1, 10000, out totalRow);

                foreach (ContentTemplateAttachement messAttach in contentTemplateAttachementCollection)
                {
                    ContentTemplateAttachementService.DeleteContentTemplateAttachement(messAttach.ContentTemplateAttachementID);
                }

                ContentTemplateDAO contentTemplateDAO = new ContentTemplateDAO();
                contentTemplateDAO.DeleteContentTemplate(contentTemplateID);
            }
            catch (ApplicationException)
            {
                throw;
            }
            catch (Exception ex)
            {
                // log this exception
                log4net.Util.LogLog.Error(ex.Message, ex);
                // wrap it and rethrow
                throw new ApplicationException(SR.BusinessDeleteContentTemplateException, ex);
            }
        }    
 public static void DeleteContentTemplate(int contentTemplateID)
 {
     try
     {
         ContentTemplateDAO contentTemplateDAO = new ContentTemplateDAO();
         contentTemplateDAO.DeleteContentTemplate(contentTemplateID);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessDeleteContentTemplateException, ex);
     }
 }