public static void OnBeforeDeleteStep(IAddress address, ISession session) { if (address == null) { return; } switch (address.GetEntityName().ToUpper()) { case "IACCOUNT": OnBeforeDeleteStep_UpdateAccount(address); break; case "ICONTACT": OnBeforeDeleteStep_UpdateContact(address); break; } OnBeforeDelete(address, session); }