0
0
MyDarling/Controllers/HomeController.cs
2023-02-20 21:53:21 +03:00

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));
}
}
}