You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/StudyCenter/Controllers/HomeController.cs

32 lines
768 B

using System.Linq;
using Application.Domain.Entities;
using Infrastructure.Data;
using Infrastructure.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
namespace StudyCenter.Controllers
{
public class HomeController : Controller
{
private readonly IWebHostEnvironment _env;
private readonly IRepository<User> _userRepo;
public HomeController(IWebHostEnvironment env, IRepository<User> userRepo)
{
this._env = env;
this._userRepo = userRepo;
}
public IActionResult Index()
{
return View();
}
public IActionResult Privacy()
{
return View();
}
}
}