nmedia-cdn

Output texte

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

Ajouter la valeur du textbox comme class

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

Afficher du HTML si textbox rempli

@if(Model.HasValue("alias")){
    <div class="section">Rempli!</div>
}

Condition du Where

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

Order by

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

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