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;
}