0
0
MyDarling/Controllers/HomeController.cs

19 lines
368 B
C#
Raw Normal View History

2023-01-31 14:54:32 +03:00
using Microsoft.AspNetCore.Mvc;
2023-02-01 09:30:01 +03:00
using Microsoft.EntityFrameworkCore;
using MyDarling.Models;
2023-01-31 14:54:32 +03:00
namespace MyDarling.Controllers
{
public class HomeController : Controller
{
2023-02-16 07:23:48 +03:00
private IRepository repository;
public HomeController(IRepository repository)
2023-02-01 09:30:01 +03:00
{
2023-02-16 07:23:48 +03:00
this.repository = repository;
2023-02-01 09:30:01 +03:00
}
2023-01-31 14:54:32 +03:00
public IActionResult Index()
{
2023-02-16 07:23:48 +03:00
return View(repository);
2023-01-31 14:54:32 +03:00
}
}
}