66 lines
2.2 KiB
C#
66 lines
2.2 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Logging;
|
|
using Sarand.Core.Base;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sarand.OperationsMgr.Web.Controllers
|
|
{
|
|
//=======================================================================
|
|
// U t i l i t i e s C o n t r o l l e r
|
|
//-----------------------------------------------------------------------
|
|
// A s s e t s
|
|
//=======================================================================
|
|
partial class UtilitiesController
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Action - Utilities.
|
|
public IActionResult Utilities (Models.Model_Utilities_Utilities model)
|
|
{
|
|
Logger.Debug(GetType().Name + ".Utilities");
|
|
|
|
if (!ValidSession)
|
|
return new RedirectResult(GetRedirectLocation(RedirectLocation.Home_SessionExpired), false);
|
|
|
|
ViewData["Title"] = Localiser["view.title.assets.assets"];
|
|
//ViewData["Message"] = "Containers";
|
|
|
|
return View(model);
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// A j a x - R e s p o n s e D a t a
|
|
//-------------------------------------------------------------------
|
|
/// <summary>Summary Utility information</summary>
|
|
public class UtilityInfo
|
|
{
|
|
}
|
|
/// <summary>Detailed Utility data</summary>
|
|
public class UtilityData : UtilityInfo
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// A j a x - A s s e t L i s t
|
|
//-------------------------------------------------------------------
|
|
public class AjaxResponse_UtilityList : AjaxResponse
|
|
{
|
|
public List<UtilityData> Utilities { get; set; } = new List<UtilityData>();
|
|
}
|
|
// Ajax request.
|
|
[HttpGet, HttpPost]
|
|
public IActionResult GetUtilityList (Models.Model_Utilities_Utilities model)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|