diff --git "a/\347\206\212\345\200\251/20241216-\346\220\234\347\264\242.md" "b/\347\206\212\345\200\251/20241216-\346\220\234\347\264\242.md" new file mode 100644 index 0000000000000000000000000000000000000000..a37da52bc90a6416bcb43309508dcc7edb491eea --- /dev/null +++ "b/\347\206\212\345\200\251/20241216-\346\220\234\347\264\242.md" @@ -0,0 +1,16 @@ +public class SearchViewModel { public string SearchTerm{get;set;} } +```html +### Controller +```c# +[HttpPost] +public IActionResult Search(SearchViewModel model) +{ + return View(model); +} +``` +View +```html +
+``` \ No newline at end of file