Example #1
0
        public static bool CreateArticleCategory(ArticleCategoryInfo articleCategory)
        {
            if (articleCategory == null)
            {
                return(false);
            }
            ArticleCategoryDao articleCategoryDao = new ArticleCategoryDao();

            articleCategory.DisplaySequence = articleCategoryDao.GetMaxDisplaySequence <ArticleCategoryInfo>();
            Globals.EntityCoding(articleCategory, true);
            return(articleCategoryDao.Add(articleCategory, null) > 0);
        }
 public void AddArticleCategory(ArticleCategory ac)
 {
     acDao.Add(ac);
 }