summaryrefslogtreecommitdiff
path: root/Controllers
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-06 21:32:40 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-07 08:02:07 +0300
commitb86579ea3f7524a0c64e1f8b40f4c7cf313f6886 (patch)
treed5d0cb5beb07983cd07c3ae8dde55f28347929e4 /Controllers
parenta2314e870e1f3f966e45532984e3c76a430334af (diff)
Add base carousel
Diffstat (limited to 'Controllers')
-rw-r--r--Controllers/BundleController.cs5
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