summaryrefslogtreecommitdiff
path: root/Controllers
diff options
context:
space:
mode:
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