private void ClearOldCodes(SetBaselOecdCodeForNotification message, NotificationApplication notification) { if (message.CodeType == CodeType.Basel) { notification.RemoveCodeOfType(CodeType.Oecd); } else if (message.CodeType == CodeType.Oecd) { notification.RemoveCodeOfType(CodeType.Basel); } }