summaryrefslogtreecommitdiff
path: root/Controllers/HomeController.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-20 21:53:21 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-20 21:53:21 +0300
commit3c83f9f4b01b5965e04739e5f8accf3235f8f699 (patch)
tree8ec80ceaf26f1343ecccab682e9041689f4f5701 /Controllers/HomeController.cs
parentc740669676b30e5eae3cbadbef2810671b9e1c37 (diff)
Add base crud actions for bundles
Diffstat (limited to 'Controllers/HomeController.cs')
-rw-r--r--Controllers/HomeController.cs8
1 files changed, 4 insertions, 4 deletions
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