Skip to content

Theme Skigebiete

lukmay edited this page Dec 16, 2023 · 2 revisions

If an accommodation's DistrictId exists in a predefined ski area list, the theme "Am Skigebiet" is added to the ThemeIds.


The Code:

Is implemented here.

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

if (isinskiarealist > 0)
{
    myacco.ThemeIds.Add("Am Skigebiet");
}
Clone this wiki locally