diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-06 21:32:40 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-07 08:02:07 +0300 |
commit | b86579ea3f7524a0c64e1f8b40f4c7cf313f6886 (patch) | |
tree | d5d0cb5beb07983cd07c3ae8dde55f28347929e4 /Controllers | |
parent | a2314e870e1f3f966e45532984e3c76a430334af (diff) |
Add base carousel
Diffstat (limited to 'Controllers')
-rw-r--r-- | Controllers/BundleController.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Controllers/BundleController.cs b/Controllers/BundleController.cs index 8ec1030..d8d2512 100644 --- a/Controllers/BundleController.cs +++ b/Controllers/BundleController.cs @@ -1,4 +1,5 @@ using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; using MyDarling.Models; namespace MyDarling.Controllers @@ -10,9 +11,9 @@ namespace MyDarling.Controllers { this.context = context; } - public async Task<IActionResult> Show(int id) + public IActionResult Show(int id) { - return View(await context.UnderwearBundles.FindAsync(id)); + return View(context.UnderwearBundles.Include(x => x.Figures).Where(x => x.Id == id).FirstOrDefault()); } } }
\ No newline at end of file |