|
|
@ -1,8 +1,5 @@
|
|
|
|
using Application.Domain.Entities;
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
using Infrastructure.Data;
|
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace IoTCenter.Controllers
|
|
|
|
namespace IoTCenter.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -11,17 +8,8 @@ namespace IoTCenter.Controllers
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
|
|
public class HomeController : Controller
|
|
|
|
public class HomeController : Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly IConfiguration _cfg;
|
|
|
|
public HomeController()
|
|
|
|
private readonly IRepository<OrganScene> _organSceneRepo;
|
|
|
|
|
|
|
|
private readonly IRepository<Area> _areaRepo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public HomeController(
|
|
|
|
|
|
|
|
IConfiguration cfg,
|
|
|
|
|
|
|
|
IRepository<OrganScene> organSceneRepo, IRepository<Area> areaRepo)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this._cfg = cfg;
|
|
|
|
|
|
|
|
this._organSceneRepo = organSceneRepo;
|
|
|
|
|
|
|
|
this._areaRepo = areaRepo;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[AllowAnonymous]
|
|
|
|
[AllowAnonymous]
|
|
|
@ -55,4 +43,4 @@ namespace IoTCenter.Controllers
|
|
|
|
return View();
|
|
|
|
return View();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|