Skip to content

Theme Alpines Südtirol

lukmay edited this page Dec 16, 2023 · 2 revisions

If an accommodation's DistrictId is listed in the predefined Alpin district list, the theme "Alpin" is added to the ThemeIds. The Districts that are "Alpin" are saved in the "Alpin.xml"


The Code:

Is implemented here.

var isinalpinelist = alpinelist.Root.Elements("Fraction").Where(x => x.Value == myacco.DistrictId).Count();

if (isinalpinelist > 0)
{
    myacco.ThemeIds.Add("Alpin");
}
Clone this wiki locally