private GetCommentsFor ( string entryId, DataManager data ) : CommentCollection | ||
entryId | string | |
data | DataManager | |
return | CommentCollection |
internal CommentCollection GetCommentsFor(string entryId, DataManager data)
{
Load(data);
CommentCollection filtered = new CommentCollection();
foreach (Comment c in Comments)
{
if (c.TargetEntryId.ToUpper() == entryId.ToUpper())
{
filtered.Add(c);
}
}
return filtered;
}