예제 #1
0
 private static void markAsFine(BankEntryDTO bankEntryDTO)
 {
     if (bankEntryDTO.bankEntry == null)
         bankEntryDTO.state = BankEntryDTO.StateEnum.BROKEN;
     else
         bankEntryDTO.state = BankEntryDTO.StateEnum.FINE;
     
 }
예제 #2
0
 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;
 }