private double GetEstimatedPointsNextMilestoneForList(TrelloData trelloData, string listName) { var estimatedListData = trelloData.GetListData(listName); var estimatedPoints = estimatedListData.CardDataCollection.Where(c=>c.Card.Labels.Any(l=>l.Name == "Next Milestone")).Sum(cd => cd.Points); return estimatedPoints; }
private double GetEstimatedPointsForList(TrelloData trelloData, string listName) { var estimatedListData = trelloData.GetListData(listName); var estimatedPoints = estimatedListData.CardDataCollection.Sum(cd => cd.Points); return estimatedPoints; }