public bool IsFull() { double _sumOfTimes = Issues.Sum(t => t.IssueEstimation); if (_sumOfTimes >= 8 * 60) { return(true); } return(false); }
public void Refresh() { if (Issues != null && Issues.Any()) { Cost = Issues.Sum(t => t.Price); TimeToDo = Issues.Sum(t => t.IssueEstimation); CompletedIssues = Issues.Where(t => t.IsCompleted()).ToList(); NewIssues = Issues.Where(t => t.Status == IssueStatus.New).ToList(); LastIssues = Issues.OrderByDescending(t => t.CreatedDate).TakeMax(10).ToList(); } }