Nel mio controller, che ho e in linea if:Inline Se in Razor Guarda
ViewBag.NameSortParam = If(String.IsNullOrEmpty(sortOrder), "Name desc", "")
A mio avviso, non riesco a usare inline se:
@Code
If(True, true, true)
End code
si dice, "Se deve terminare con l'abbinamento End If." Perché non posso usare un inline se qui? Grazie.
sì, questo è stato frustrante. Sono contento che tu abbia fatto questa domanda! – CokoBWare