Skip to content

Theme Mediterranes Südtirol

lukmay edited this page Dec 16, 2023 · 2 revisions

If an accommodation's DistrictId is present in a specified list of Mediterranean districts, the theme "Mediterran" is added to the ThemeIds. The Districts that are "Mediterran" are saved in the "Mediterranean.xml"


The Code:

Is implemented here.

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

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