summaryrefslogtreecommitdiff
path: root/Controllers/HomeController.cs
blob: 255af9fbbf03edc01a5e439e791ce67856f18e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(context.UnderwearBundles.Include(bundle => bundle.Figures).Where(x => x.Price != 0));
		}
	}
}