19 lines
429 B
C#
19 lines
429 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(bundle => bundle.Figures).Where(x => x.Price != 0));
|
|
}
|
|
}
|
|
} |