Engage.Dnn.Publish.Category.GetCategoryArticles C# (CSharp) Method

GetCategoryArticles() private method

private GetCategoryArticles ( int itemId, int portalId ) : List
itemId int
portalId int
return List
        public static List<Article> GetCategoryArticles(int itemId, int portalId)
        {
            DataTable children =
                GetAllChildren(
                    ItemType.Article.GetId(),
                    itemId,
                    RelationshipType.ItemToParentCategory.GetId(),
                    RelationshipType.ItemToRelatedCategory.GetId(),
                    portalId).Tables[0];
            var articles = new List<Article>(children.Rows.Count);

            foreach (DataRow row in children.Rows)
            {
                articles.Add(Article.GetArticle((int)row["ItemId"], portalId));
            }

            return articles;
        }