From 3c83f9f4b01b5965e04739e5f8accf3235f8f699 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Mon, 20 Feb 2023 21:53:21 +0300 Subject: Add base crud actions for bundles --- Controllers/HomeController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Controllers/HomeController.cs') diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index 228a9c3..028322c 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -6,14 +6,14 @@ namespace MyDarling.Controllers { public class HomeController : Controller { - private IRepository repository; - public HomeController(IRepository repository) + private DataContext context; + public HomeController(DataContext context) { - this.repository = repository; + this.context = context; } public IActionResult Index() { - return View(repository); + return View(context.UnderwearBundles.Include(b => b.Figures)); } } } \ No newline at end of file -- cgit v1.2.3