diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-06 07:11:05 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-07 07:54:51 +0300 |
commit | a2314e870e1f3f966e45532984e3c76a430334af (patch) | |
tree | dbf52d6299a75afcf1bf4c279d4d8617e957f0a3 /Controllers/BundleController.cs | |
parent | d1ca742017b061905751568afa117c4498d4e091 (diff) |
Init bundle controller
Diffstat (limited to 'Controllers/BundleController.cs')
-rw-r--r-- | Controllers/BundleController.cs | 18 |
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 |