summaryrefslogtreecommitdiff
path: root/Controllers/HomeController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Controllers/HomeController.cs')
-rw-r--r--Controllers/HomeController.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs
index a9cdaa5..255af9f 100644
--- a/Controllers/HomeController.cs
+++ b/Controllers/HomeController.cs
@@ -1,12 +1,19 @@
using Microsoft.AspNetCore.Mvc;
+using Microsoft.EntityFrameworkCore;
+using MyDarling.Models;
namespace MyDarling.Controllers
{
public class HomeController : Controller
{
+ private DataContext context;
+ public HomeController(DataContext context)
+ {
+ this.context = context;
+ }
public IActionResult Index()
{
- return View();
+ return View(context.UnderwearBundles.Include(bundle => bundle.Figures).Where(x => x.Price != 0));
}
}
} \ No newline at end of file