19 lines
368 B
C#
19 lines
368 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using MyDarling.Models;
|
|
|
|
namespace MyDarling.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
private IRepository repository;
|
|
public HomeController(IRepository repository)
|
|
{
|
|
this.repository = repository;
|
|
}
|
|
public IActionResult Index()
|
|
{
|
|
return View(repository);
|
|
}
|
|
}
|
|
} |