summaryrefslogtreecommitdiff
path: root/Controllers/BundleController.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-06 07:11:05 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-06 07:11:05 +0300
commite0085417df71c69414cf90895e106bb13c34c4db (patch)
treef1eb75b5b3cf4a739ed35d63f69c4522a1c3c307 /Controllers/BundleController.cs
parent3f54d070e72955db80f410ba74a73846df1fbe09 (diff)
Init bundle controller
Diffstat (limited to 'Controllers/BundleController.cs')
-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