0
0
MyDarling/Controllers/HomeController.cs
2023-02-16 07:23:48 +03:00

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