Пример #1
0
        private IEnumerable <PaymentObject> GetPayments()
        {
            var allIncome = paymentRepository.GetPayments().ToList();
            var lastTime  = allIncome.Any() ? allIncome.Last().time : 0;

            allIncome.AddRange(dataProvider.GetPayments().ToList().FindAll(i => i.time > lastTime));
            return(allIncome);
        }