private static void UpdateHomonymAdditionByLanguage(StreetNameDetail entity, Language?language, string homonymAddition) { if (entity == null) { return; } switch (language) { case Language.Dutch: entity.HomonymAdditionDutch = homonymAddition; break; case Language.French: entity.HomonymAdditionFrench = homonymAddition; break; case Language.German: entity.HomonymAdditionGerman = homonymAddition; break; case Language.English: entity.HomonymAdditionEnglish = homonymAddition; break; } }
private static void UpdateNameByLanguage(StreetNameDetail entity, Language?language, string name) { switch (language) { case Language.Dutch: entity.NameDutch = name; break; case Language.French: entity.NameFrench = name; break; case Language.German: entity.NameGerman = name; break; case Language.English: entity.NameEnglish = name; break; } }
private static void UpdateVersionTimestamp(StreetNameDetail streetName, Instant versionTimestamp) => streetName.VersionTimestamp = versionTimestamp;