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/Platform/Controllers/HomeController.cs

49 lines
1.3 KiB

using Application.Domain.Entities;
using Infrastructure.Data;
using Infrastructure.Extensions;
using Infrastructure.Web;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Platform.Controllers
{
[Authorize]
[ApiExplorerSettings(IgnoreApi = true)]
public class HomeController : BaseController
{
private readonly IRepository<Area> _areaRepo;
private readonly IRepository<Organ> _organRepo;
private readonly IRepository<Building> _buildingRepo;
private readonly IRepository<Statistic> _statisticRepo;
public HomeController(IRepository<Area> areaRepo,
IRepository<Organ> organRepo,
IRepository<Building> buildingRepo,
IRepository<Statistic> statisticRepo)
{
this._areaRepo = areaRepo;
this._organRepo = organRepo;
this._buildingRepo = buildingRepo;
this._statisticRepo = statisticRepo;
}
public IActionResult Index()
{
return View();
}
public IActionResult Building()
{
return View();
}
public IActionResult Alarm()
{
return View();
}
public string Mac(string id)
{
return Helper.Instance.MacEncrypt(id);
}
}
}