Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 820 Bytes
using System;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Soloco.RealTimeWeb.Common;
namespace Soloco.RealTimeWeb.Controllers
{
public class HomeController : Controller
{
private readonly IConfiguration _configuration;
public HomeController(IConfiguration configuration)
{
if (configuration == null) throw new ArgumentNullException(nameof(configuration));
_configuration = configuration;
}
public ActionResult Index()
{
if (!_configuration.GeneralConfigured())
{
return RedirectToAction("Index", "Installation");
}
return View();
}
public ActionResult Error()
{
return View();
}
}
}
You can’t perform that action at this time.