bool AlreadyExists(IEnumerable<UpcomingTransaction> list, UpcomingTransaction transaction) { return list.Any(y => y.Equals(transaction)); }
public bool Equals(UpcomingTransaction other) { return EffectiveDate == other.EffectiveDate && TransactionType == other.TransactionType && Amount == other.Amount && Status == other.Status && TransactionFrom == other.TransactionFrom && TransactionTo == other.TransactionTo; }