Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit a328809

Browse files
committed
React to aspnet/Razor#281 changes
1 parent c1338a0 commit a328809

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

samples/MvcSample.Web/Views/Home/Create.cshtml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<ul>
3232
@foreach (var property in metadata.Properties)
3333
{
34-
@PropertyListItem(property)
34+
<li>Property @property.PropertyName is type @property.ModelType.Name and '@(property.Description ?? "no description")'</li>
3535
}
3636
</ul>
3737
}
@@ -114,12 +114,4 @@
114114
</table>
115115
}
116116
</div>
117-
</div>
118-
119-
@helper PropertyListItem(ModelMetadata property)
120-
{
121-
var propertyName = property.PropertyName;
122-
var propertyTypeName = property.ModelType.Name;
123-
124-
<li>Property @propertyName is type @propertyTypeName and '@(property.Description ?? "no description")'</li>
125-
}
117+
</div>

0 commit comments

Comments
 (0)