summaryrefslogtreecommitdiff
path: root/Controllers
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-16 08:05:29 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-16 08:05:29 +0300
commita27cab13210345f094b27b51bbc05fbe4e3ba483 (patch)
treed39611f42a96607e6e8ccf0592270e00212c3cd3 /Controllers
parent305d3070ec8b66107eb0327e0a029aa74e197d3a (diff)
parentaf72b18ba097310f55152ee0f1654fe4df6dea89 (diff)
Merge branch 'di'
Diffstat (limited to 'Controllers')
-rw-r--r--Controllers/HomeController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs
index 255af9f..228a9c3 100644
--- a/Controllers/HomeController.cs
+++ b/Controllers/HomeController.cs
@@ -6,14 +6,14 @@ namespace MyDarling.Controllers
{
public class HomeController : Controller
{
- private DataContext context;
- public HomeController(DataContext context)
+ private IRepository repository;
+ public HomeController(IRepository repository)
{
- this.context = context;
+ this.repository = repository;
}
public IActionResult Index()
{
- return View(context.UnderwearBundles.Include(bundle => bundle.Figures).Where(x => x.Price != 0));
+ return View(repository);
}
}
} \ No newline at end of file