Ejemplo n.º 1
0
        private static void UpdateDefaultNameByOfficialLanguages(MunicipalityListItem municipalityListItem)
        {
            switch (municipalityListItem.OfficialLanguages.FirstOrDefault())
            {
            case Language.Dutch:
                municipalityListItem.DefaultName = municipalityListItem.NameDutch;
                break;

            case Language.French:
                municipalityListItem.DefaultName = municipalityListItem.NameFrench;
                break;

            case Language.German:
                municipalityListItem.DefaultName = municipalityListItem.NameGerman;
                break;

            case Language.English:
                municipalityListItem.DefaultName = municipalityListItem.NameEnglish;
                break;
            }
        }
Ejemplo n.º 2
0
        private static void UpdateNameByLanguage(MunicipalityListItem municipalityListItem, Language?language, string name)
        {
            switch (language)
            {
            case Language.Dutch:
                municipalityListItem.NameDutch = name;
                break;

            case Language.French:
                municipalityListItem.NameFrench = name;
                break;

            case Language.German:
                municipalityListItem.NameGerman = name;
                break;

            case Language.English:
                municipalityListItem.NameEnglish = name;
                break;
            }
        }
Ejemplo n.º 3
0
 private static void UpdateVersionTimestamp(MunicipalityListItem municipalityListItem, Instant timestamp)
 => municipalityListItem.VersionTimestamp = timestamp;