private static void markAsFine(BankEntryDTO bankEntryDTO) { if (bankEntryDTO.bankEntry == null) bankEntryDTO.state = BankEntryDTO.StateEnum.BROKEN; else bankEntryDTO.state = BankEntryDTO.StateEnum.FINE; }
protected static BankEntryDTO markDuplicate(BankEntryDTO bankEntryDTO, IList<BankEntry> allEntries) { foreach (BankEntry bankEntry in allEntries) { if (bankEntry.Equals(bankEntryDTO.bankEntry)) //...... This isn't working for some strange reason. { bankEntryDTO.state = BankEntryDTO.StateEnum.DUPLICATE; }; } return bankEntryDTO; }