78 lines
2.1 KiB
C#
78 lines
2.1 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Logging;
|
|
using Sarand.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Bus;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Utils;
|
|
using Saxonite.Net.Core.Web.Admin.Models;
|
|
using Saxonite.Net.Core.Web.Base.App;
|
|
using Saxonite.Net.Core.Web.Base.Controllers;
|
|
using Saxonite.Net.Standard.Base.Bus;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Saxonite.Net.Core.Web.Admin.Controllers
|
|
{
|
|
//=======================================================================
|
|
public partial class SystemController : SaxController_Admin
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SystemController(SaxLocaliser localiser, ILogger<HomeController> logger) :
|
|
base(localiser, logger)
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
/// <summary>
|
|
/// System - Home.
|
|
/// <para>- No 'System' home page for now, redirect to home page.</para>
|
|
/// </summary>
|
|
[HttpGet]
|
|
public IActionResult Index()
|
|
{
|
|
return RedirectToAction("", "");
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
/// <summary>
|
|
/// System - Database page.
|
|
/// </summary>
|
|
[HttpGet]
|
|
public IActionResult Database(Model_System model)
|
|
{
|
|
// Validate session.
|
|
if (!ValidUserSession)
|
|
AutoLoginUser();
|
|
if (!ValidUserSession)
|
|
return RedirectToAction("", "");
|
|
|
|
model.AdditionalFiles_JS.Add("js/sax-sys-db.js");
|
|
return View(model);
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
/// <summary>
|
|
/// System - Logs page.
|
|
/// </summary>
|
|
[HttpGet]
|
|
public IActionResult Logs(Model_System model)
|
|
{
|
|
// Validate session.
|
|
if (!ValidUserSession)
|
|
AutoLoginUser();
|
|
if (!ValidUserSession)
|
|
return RedirectToAction("", "");
|
|
|
|
model.AdditionalFiles_JS.Add("js/sax-sys-logs.js");
|
|
return View(model);
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|