public List <Model.ContentType> GetContentType()
 {
     if (ctBll == null)
     {
         ctBll = new BLL.ContentType();
     }
     return(ctBll.GetList());
 }
Example #2
0
        public List <Model.ContentType> GetContentType()
        {
            if (ctBll == null)
            {
                ctBll = new BLL.ContentType();
            }
            int totalCount = 0;

            return(ctBll.GetList(1, 10000, out totalCount, "", null));
        }
Example #3
0
        public string GetSiteHelper()
        {
            string htmlAppend = string.Empty;

            if (ctBll == null)
            {
                ctBll = new BLL.ContentType();
            }
            if (cdBll == null)
            {
                cdBll = new BLL.ContentDetail();
            }
            cdList = cdBll.GetList();
            List <Model.ContentTypeInfo> ctList = ctBll.GetList();

            Model.ContentTypeInfo rootModel = ctList.Find(delegate(Model.ContentTypeInfo m) { return(m.TypeName == "站点所有帮助"); });
            if (rootModel != null)
            {
                htmlAppend += GetChildren(rootModel, ctList);
            }

            return(htmlAppend);
        }