summaryrefslogtreecommitdiff
path: root/Controllers/HomeController.cs
blob: 028322c283738e27ba82aa703de037857f6ada8d (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(b => b.Figures));
		}
	}
}