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-06 21:32:40 +0300 |
commit | 29478524c7aa12b0d95ebbc4b8b168119c9557c4 (patch) | |
tree | 0724c368afc8122627bfed5a9ca75f5bfae2743c /Controllers | |
parent | e0085417df71c69414cf90895e106bb13c34c4db (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 |