Skip to content

Theme In den Dolomiten

lukmay edited this page Dec 16, 2023 · 2 revisions

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


The Code:

Is implemented here.

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

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