mardi 9 octobre 2018

How can I evaluate if empty using razor

I would like to wrap this code into a condition that only shows if eventtypes is not empty

<span class="event-type">
    @string.Join(",", item.GetFlatTaxons("eventtypes").Select(t => t.Title))
</span>

Aucun commentaire:

Enregistrer un commentaire