I\'m looking for a way to write the following code with less lines of code (maybe 5). I suppose I could do the same thing as the selected class but this razor syntax isn\'t
@foreach (var mi in Model.MenuItems) {
-
title="@mi.Title"} }>@mi.Text
}
I haven't tested it but it parses correctly.