@model RazorWebSite.Controllers.DateModel
@{
    ViewContext.ValidationMessageElement = "ValidationInView";
    ViewContext.ValidationSummaryMessageElement = "ValidationSummaryInView";
    ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture;
    ViewContext.ClientValidationEnabled = true;
}
@Html.ValidationSummary(true, "MySummary")
@Html.ValidationMessage("Error")
@Html.TextBox("Prefix.Property1")
@Html.EditorForModel()
@Html.ViewContext.ClientValidationEnabled
@await Html.PartialAsync("OverrideAppWideDefaultsInPartialView")
