summaryrefslogtreecommitdiff
path: root/Controllers/HomeController.cs
blob: 228a9c3690ed0a1a82cbfb886da41ad6f9465225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
		}
	}
}