19 lines
442 B
C#
19 lines
442 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using MyDarling.Models;
|
|
|
|
namespace MyDarling.Controllers
|
|
{
|
|
public class BundleController : Controller
|
|
{
|
|
private DataContext context;
|
|
public BundleController(DataContext context)
|
|
{
|
|
this.context = context;
|
|
}
|
|
public IActionResult Show(int id)
|
|
{
|
|
return View(context.UnderwearBundles.Include(x => x.Figures).Where(x => x.Id == id).FirstOrDefault());
|
|
}
|
|
}
|
|
} |