Skip to content

Theme Bonus Vacanze

lukmay edited this page Dec 16, 2023 · 2 revisions

For accommodations with specific features, if a feature with the ID "D448B037F37843B3B49C15CAFBBC5669" is present, the theme "Bonus Vacanze" is added to the ThemeIds.


The Code:

Is implemented here.

if (myacco.Features != null)
{
    var balance = myacco.Features.Where(x => x.Id == "D448B037F37843B3B49C15CAFBBC5669").Count();

    if (balance > 0)
    {
        myacco.ThemeIds.Add("Bonus Vacanze");
    }
}
Clone this wiki locally