@model Northwind.Mvc.Models.HomeModelBindingViewModel
@{
ViewData["Title"] = "Model Binding Demo";
}
@ViewData["Title"]
Enter values for your thing in the following form:
@if (Model is not null)
{
Submitted Thing
- Model.Thing.Id
- @Model.Thing.Id
- Model.Thing.Color
- @Model.Thing.Color
- Model.Thing.Email
- @Model.Thing.Email
@if (Model.HasErrors)
{
@foreach (string errorMessage in Model.ValidationErrors)
{
@errorMessage
}
}
}