From a2314e870e1f3f966e45532984e3c76a430334af Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Mon, 6 Feb 2023 07:11:05 +0300 Subject: Init bundle controller --- Controllers/BundleController.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Controllers/BundleController.cs (limited to 'Controllers/BundleController.cs') 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 Show(int id) + { + return View(await context.UnderwearBundles.FindAsync(id)); + } + } +} \ No newline at end of file -- cgit v1.2.3