bool AlreadyExists(IEnumerable<UpcomingTransaction> list, UpcomingTransaction transaction)
 {
     return list.Any(y => y.Equals(transaction));
 }
Пример #2
0
 public bool Equals(UpcomingTransaction other)
 {
     return EffectiveDate   == other.EffectiveDate
         && TransactionType == other.TransactionType
         && Amount          == other.Amount
         && Status          == other.Status
         && TransactionFrom == other.TransactionFrom
         && TransactionTo   == other.TransactionTo;
 }