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)); }
public blog_tb_article_content GetArticleContent(string articleID) { CheckBlog.ValidateBlog(typeof(blog_tb_article), articleID); return(Dal.GetArticleContent(articleID)); }
public string ReadTempContent(string articleID) { CheckBlog.ValidateBlog(typeof(blog_tb_article), articleID); return(Dal.ReadTempContent(articleID)); }
public int ChangeArticle(string ids, string categoryID) { CheckBlog.ValidateBlog(typeof(blog_tb_article), ids); return(Dal.ChangeArticle(ids, categoryID)); }