summaryrefslogtreecommitdiff
path: root/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'Controllers')
-rw-r--r--Controllers/BundleController.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Controllers/BundleController.cs b/Controllers/BundleController.cs
new file mode 100644
index 0000000..8ec1030
--- /dev/null
+++ b/Controllers/BundleController.cs
@@ -0,0 +1,18 @@
+using Microsoft.AspNetCore.Mvc;
+using MyDarling.Models;
+
+namespace MyDarling.Controllers
+{
+ public class BundleController : Controller
+ {
+ private DataContext context;
+ public BundleController(DataContext context)
+ {
+ this.context = context;
+ }
+ public async Task<IActionResult> Show(int id)
+ {
+ return View(await context.UnderwearBundles.FindAsync(id));
+ }
+ }
+} \ No newline at end of file