public static ArticleStat GetArticleStat(LoginUser loginUser, int articleViewID) { ArticleStats articleStats = new ArticleStats(loginUser); articleStats.LoadByArticleViewID(articleViewID); if (articleStats.IsEmpty) { return(null); } else { return(articleStats[0]); } }
public ArticleStat(DataRow row, ArticleStats articleStats) : base(row, articleStats) { _articleStats = articleStats; }