0
0
MyDarling/Controllers/BundleController.cs

19 lines
442 B
C#
Raw Normal View History

2023-02-06 07:11:05 +03:00
using Microsoft.AspNetCore.Mvc;
2023-02-06 21:32:40 +03:00
using Microsoft.EntityFrameworkCore;
2023-02-06 07:11:05 +03:00
using MyDarling.Models;
namespace MyDarling.Controllers
{
public class BundleController : Controller
{
private DataContext context;
public BundleController(DataContext context)
{
this.context = context;
}
2023-02-06 21:32:40 +03:00
public IActionResult Show(int id)
2023-02-06 07:11:05 +03:00
{
2023-02-06 21:32:40 +03:00
return View(context.UnderwearBundles.Include(x => x.Figures).Where(x => x.Id == id).FirstOrDefault());
2023-02-06 07:11:05 +03:00
}
}
}