Ejemplo n.º 1
0
 double GetPaidAmount(IEnumerable <DataAccess.Model.Storage.Payment> payments)
 {
     return(payments
            .Where(payment => payment.Status == null || payment.Status == paid)
            .Sum(payment => ExchangeHelper.ToEUR(payment.Currency, payment.Amount)));
 }