diff --git a/sample/FormHelper.Samples/FormHelper.Samples.csproj b/sample/FormHelper.Samples/FormHelper.Samples.csproj index 054ffa8..221e009 100755 --- a/sample/FormHelper.Samples/FormHelper.Samples.csproj +++ b/sample/FormHelper.Samples/FormHelper.Samples.csproj @@ -1,7 +1,7 @@  - netcoreapp3.0 + netcoreapp3.1 @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/sample/FormHelper.Samples/Startup.cs b/sample/FormHelper.Samples/Startup.cs index f02f123..f0fa1ab 100755 --- a/sample/FormHelper.Samples/Startup.cs +++ b/sample/FormHelper.Samples/Startup.cs @@ -21,6 +21,12 @@ public Startup(IConfiguration configuration) public void ConfigureServices(IServiceCollection services) { + services.AddControllersWithViews() + .AddFluentValidation(); + + // You can add these validators in a separate class. + services.AddTransient, ProductFormViewModelValidator>(); + // Add FormHelper to the project. services.AddFormHelper(); @@ -31,12 +37,6 @@ public void ConfigureServices(IServiceCollection services) // RedirectDelay = 30, // ToastrDefaultPosition = ToastrPosition.BottomFullWidth //}); - - // You can add these validators in a separate class. - services.AddTransient, ProductFormViewModelValidator>(); - - services.AddControllersWithViews() - .AddFluentValidation(); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env) diff --git a/sample/FormHelper.Samples/Views/Shared/_Layout.cshtml b/sample/FormHelper.Samples/Views/Shared/_Layout.cshtml index fca8ce6..07429c6 100755 --- a/sample/FormHelper.Samples/Views/Shared/_Layout.cshtml +++ b/sample/FormHelper.Samples/Views/Shared/_Layout.cshtml @@ -8,20 +8,15 @@ - - - - - - - + +
-

Form Helper

+

Form Helper

Form & Validation Helper for ASP.NET Core

@@ -67,6 +62,12 @@ + + + + + + "); + output.PostElement.AppendHtml($""); if (usedFormHelperTag) {