Beispiel #1
0
 public static bool EqualsWithoutId(Bank first, Bank second)
 {
     return(first.Bik == second.Bik &&
            first.City == second.City &&
            (first.DefaultCorAccount != null && first.DefaultCorAccount.CorAccountNumber == second.DefaultCorAccount.CorAccountNumber) &&
            first.CorAccounts.All(x => second.CorAccounts.Any(y => y.CorAccountNumber == x.CorAccountNumber)) &&
            first.Name == second.Name &&
            BankRegion.EqualsWithoutId(first.Region, second.Region) &&
            first.Deleted == second.Deleted);
 }
Beispiel #2
0
 public static bool EqualsWithoutId(BankRegion first, BankRegion second)
 {
     return(first.City == second.City &&
            first.Region == second.Region &&
            first.RegionNum == second.RegionNum);
 }