summaryrefslogtreecommitdiff
path: root/Controllers/BundleController.cs
blob: d8d2512ac4a002e4955f0a57b9b6ac54b66206ce (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 BundleController : Controller
	{
		private DataContext context;
		public BundleController(DataContext context)
		{
			this.context = context;
		}
		public IActionResult Show(int id)
		{
			return View(context.UnderwearBundles.Include(x => x.Figures).Where(x => x.Id == id).FirstOrDefault());
		}
	}
}