Theme Alpines Südtirol - noi-techpark/odh-docs GitHub Wiki

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");
}