private IEnumerable <DayIncomeObject> GetIncomes() { var allIncome = incomeRepository.GetIncomes().ToList(); var lastTime = allIncome.Any() ? allIncome.Last().time : 0; allIncome.AddRange(dataProvider.GetDayIncomes().ToList().FindAll(i => i.time > lastTime)); return(allIncome); }