61 lines
2.0 KiB
C#
61 lines
2.0 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Sarand.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Bus;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Dbas;
|
|
using Saxonite.Net.Core.Web.Admin.Models;
|
|
using Saxonite.Net.Standard.Base.App;
|
|
using Saxonite.Net.Standard.Base.Bus;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Saxonite.Net.Core.Web.Admin.Controllers
|
|
{
|
|
//=======================================================================
|
|
// System - Ajax - Database controller
|
|
//=======================================================================
|
|
partial class SystemController
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Database data.
|
|
private class LogFileData
|
|
{
|
|
public String Name { get; set; }
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Get Database Table List ajax request.
|
|
//-------------------------------------------------------------------
|
|
private class AjaxResponse_LogFileList : AjaxResponse_Data
|
|
{
|
|
// Construction.
|
|
public AjaxResponse_LogFileList(SaxModel_Admin model) : base(model) { }
|
|
// Log file list.
|
|
public List<LogFileData> Tables { get; } = new List<LogFileData>();
|
|
}
|
|
//-------------------------------------------------------------------
|
|
[HttpPost]
|
|
[Route("System/Ajax/GetLogFileList")]
|
|
public IActionResult Ajax_GetLogFileList(Model_Sport model)
|
|
{
|
|
String fn = GetType().Name + ".Ajax_GetLogFileList";
|
|
String messageTitle = Localiser["system.caption.logs"];
|
|
AjaxResponse_LogFileList responseData = new AjaxResponse_LogFileList(model);
|
|
|
|
// Validate session.
|
|
if (!ValidUserSession)
|
|
return GetAjaxResult_InvalidSession(responseData);
|
|
|
|
// Complete response.
|
|
responseData.Success = true;
|
|
|
|
return Json(responseData);
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|