TS - OperationsMgrWeb login page UI and function
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
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();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.OperationsMgr.Core.App;
|
||||
using Sarand.OperationsMgr.Web.App;
|
||||
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
|
||||
//=======================================================================
|
||||
public partial class UtilitiesController : Controller_Base
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public UtilitiesController (OpnLocaliser localiser) : base(localiser)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Utilities.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
public IActionResult Error ()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user