Theme In den Dolomiten - noi-techpark/odh-docs GitHub Wiki
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");
}