nmedia-cdn

Output texte

@Model.Value("alias")
= "selectedValue"

Ajouter la valeur du textbox comme class

<div class="@(Model.HasValue("alias") ? Model.Value<string>("alias") : null)"></div>

Afficher du HTML si un choix X

@if(Model.Value<string>("alias") == "selection"){
    <div class="section">Choix</div>
}

Condition du Where

.Where(x => x.Value<string>("alias") == "selectedValue")

Order by

.OrderBy(x => x.Value<string>("alias"));

.OrderByDescending(x => x.Value<string>("alias"));