diff --git a/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/Controllers/HomeController.cs b/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/Controllers/HomeController.cs
index ab7d351a..4c67555e 100644
--- a/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/Controllers/HomeController.cs
+++ b/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/Controllers/HomeController.cs
@@ -31,6 +31,13 @@ public IActionResult Privacy()
return View();
}
+ [HttpPost]
+ public IActionResult AddItem(ItemModel model)
+ {
+ _logger.LogInformation("Added item {@Model}", model);
+ return View("Index");
+ }
+
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
diff --git a/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/Models/ItemModel.cs b/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/Models/ItemModel.cs
new file mode 100644
index 00000000..763e9a6a
--- /dev/null
+++ b/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/Models/ItemModel.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace ASP.NET_Core_3___VS2019.Models
+{
+ public class ItemModel
+ {
+ public string Name { get; set; }
+ public string Value { get; set; }
+
+ }
+}
diff --git a/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/NLog.config b/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/NLog.config
index dd61f616..af7839ae 100644
--- a/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/NLog.config
+++ b/examples/ASP.NET Core 3/ASP.NET Core 3 - VS2019/NLog.config
@@ -19,7 +19,7 @@
Learn about building Web apps with ASP.NET Core.
+ +