Exemplo n.º 1
0
        public static bool UpdateRelease(int articId, bool isRelease)
        {
            ArticleDao  articleDao  = new ArticleDao();
            ArticleInfo articleInfo = articleDao.Get <ArticleInfo>(articId);

            articleInfo.IsRelease = isRelease;
            return(new ArticleDao().Update(articleInfo, null));
        }