summaryrefslogtreecommitdiff
path: root/Controllers/HomeController.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-01 09:30:01 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-01 09:30:01 +0300
commit910bb1d727b8615aba70e122b4ae6e51d015b596 (patch)
tree81f82fb226be38221d2b36b7ccca88090b9f2742 /Controllers/HomeController.cs
parent2a238d65e4ce66d6c79d287a19cefcda96afc747 (diff)
Add bundle cards
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