add HomeController

This commit is contained in:
chsakell
2016-09-26 09:53:59 +03:00
parent decb0e5bea
commit 935496603a
3 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace ChatLe.Controllers
{
public class HomeController : Controller
{
static ILogger _logger;
public HomeController(ILoggerFactory factory)
{
if (_logger == null)
_logger = factory.CreateLogger("Unhandled Error");
}
public IActionResult Index()
{
return View();
}
}
}