18 lines
373 B
C#
18 lines
373 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using MyDarling.Models;
|
|
|
|
namespace MyDarling.Controllers
|
|
{
|
|
public class BundleController : Controller
|
|
{
|
|
private DataContext context;
|
|
public BundleController(DataContext context)
|
|
{
|
|
this.context = context;
|
|
}
|
|
public async Task<IActionResult> Show(int id)
|
|
{
|
|
return View(await context.UnderwearBundles.FindAsync(id));
|
|
}
|
|
}
|
|
} |