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