19 lines
394 B
C#
19 lines
394 B
C#
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));
|
|
}
|
|
}
|
|
} |