0
0
MyDarling/Controllers/HomeController.cs
2023-02-01 09:30:01 +03:00

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