summaryrefslogtreecommitdiff
path: root/Controllers/BundlesController.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-16 09:01:18 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-16 09:01:18 +0300
commitdc58f242fa20f89cdbb0f4b80138be04c3e50c2e (patch)
treeb2a9b0ec183237dd675f418957f2a5442aed06a9 /Controllers/BundlesController.cs
parentb20759f20589af855adb977079cf77b4ef299b13 (diff)
Add action for adding new bundles
Diffstat (limited to 'Controllers/BundlesController.cs')
-rw-r--r--Controllers/BundlesController.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Controllers/BundlesController.cs b/Controllers/BundlesController.cs
index 1f5c212..aeefebb 100644
--- a/Controllers/BundlesController.cs
+++ b/Controllers/BundlesController.cs
@@ -32,5 +32,16 @@ namespace MyDarling.Controllers
}
return RedirectToAction("Index");
}
+
+ public ActionResult Add()
+ {
+ return View();
+ }
+ [HttpPost]
+ public ActionResult Add(UnderwearBundle b)
+ {
+ repository.Add(b);
+ return RedirectToAction("Index");
+ }
}
} \ No newline at end of file