diff --git a/samples/MvcSample.Web/Views/Home/Create.cshtml b/samples/MvcSample.Web/Views/Home/Create.cshtml
index 3acb6693d7..7190f1aaf7 100644
--- a/samples/MvcSample.Web/Views/Home/Create.cshtml
+++ b/samples/MvcSample.Web/Views/Home/Create.cshtml
@@ -31,7 +31,7 @@
@foreach (var property in metadata.Properties)
{
- @PropertyListItem(property)
+ - Property @property.PropertyName is type @property.ModelType.Name and '@(property.Description ?? "no description")'
}
}
@@ -114,12 +114,4 @@
}
-
-
-@helper PropertyListItem(ModelMetadata property)
-{
- var propertyName = property.PropertyName;
- var propertyTypeName = property.ModelType.Name;
-
- Property @propertyName is type @propertyTypeName and '@(property.Description ?? "no description")'
-}
\ No newline at end of file
+
\ No newline at end of file