Example #1
0
 public int Update(blog_tb_article article, blog_tb_article_content content)
 {
     CheckBlog.ValidateBlog(typeof(blog_tb_article), article.articleID + "");
     if (String.IsNullOrEmpty(article.articlePic))
     {
         Match m = Regex.Match(content.articleContent, "src=\"(http://static.kecq.com.*?)\"");
         if (m.Success)
         {
             article.articlePic      = m.Groups[1].Value;
             article.articleThumbPic = m.Groups[1].Value;
         }
     }
     return(Dal.Update(article, content));
 }
Example #2
0
 public blog_tb_article_content GetArticleContent(string articleID)
 {
     CheckBlog.ValidateBlog(typeof(blog_tb_article), articleID);
     return(Dal.GetArticleContent(articleID));
 }
Example #3
0
 public string ReadTempContent(string articleID)
 {
     CheckBlog.ValidateBlog(typeof(blog_tb_article), articleID);
     return(Dal.ReadTempContent(articleID));
 }
Example #4
0
 public int ChangeArticle(string ids, string categoryID)
 {
     CheckBlog.ValidateBlog(typeof(blog_tb_article), ids);
     return(Dal.ChangeArticle(ids, categoryID));
 }