Fixes: Razor example template not correct

Work Items: 30329
This commit is contained in:
starfighter83
2011-08-25 07:38:57 -02:00
parent c095148dbe
commit 9a7d75e1f3

View File

@@ -15,7 +15,8 @@ NOTE: It is safe to remove this comment (anything between @ * * @), the code tha
@{ var numberOfItems = 10; }
<ul>
@foreach (var item in @Model.Children.Where("Visible").Take(numberOfItems).OrderBy("UpdateDate")) {
@foreach (var item in @Model.Children.Where("Visible").OrderBy("UpdateDate").Take(numberOfItems))
{
<li><a href="@item.Url">@item.Name</a></li>
}
</ul>