Skip to content

Theme Christkindlmarkt

lukmay edited this page Dec 16, 2023 · 2 revisions

When an accommodation is associated with certain Tourism Associations, identified by their unique IDs, the theme "Christkindlmarkt" is added to the ThemeIds.

Criteria for Assigning "Christkindlmarkt" Theme

  • Tourism Association ID Check: The accommodation's TourismVereinId is checked against a predefined list of IDs corresponding to specific locations known for their Christmas markets.
    • Bozen - ID: 5228229451CA11D18F1400A02427D15E
    • Brixen - ID: 5228229751CA11D18F1400A02427D15E
    • Bruneck - ID: 5228229851CA11D18F1400A02427D15E
    • Sterzing - ID: 522822FF51CA11D18F1400A02427D15E
    • Meran - ID: 522822BE51CA11D18F1400A02427D15E

The Code:

Is implemented here.

List<string> tvtoassign = new List<string>();
tvtoassign.Add("5228229451CA11D18F1400A02427D15E"); //Bozen
tvtoassign.Add("5228229751CA11D18F1400A02427D15E"); //Brixen
tvtoassign.Add("5228229851CA11D18F1400A02427D15E"); //Bruneck            
tvtoassign.Add("522822FF51CA11D18F1400A02427D15E"); //Sterzing
tvtoassign.Add("522822BE51CA11D18F1400A02427D15E"); //Meran

if (tvtoassign.Contains(myacco.TourismVereinId.ToUpper()))
    myacco.ThemeIds.Add("Christkindlmarkt");
Clone this wiki locally