ibms-dome/Backend/Controllers/EmergencyDeviceMenuController.cs

51 lines
1.5 KiB
C#
Raw Permalink Normal View History

2022-10-14 16:08:54 +08:00
using Microsoft.AspNetCore.Mvc;
using Repository.BackendRepository.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Backend.Controllers
{
public class EmergencyDeviceMenuController : MybaseController<EmergencyDeviceMenuController>
{
private readonly IBackendRepository backendRepository;
public EmergencyDeviceMenuController(IBackendRepository backendRepository)
{
this.backendRepository = backendRepository;
}
public IActionResult Index()
{
return View();
}
/// <summary>
/// 取得系統大類清單
/// </summary>
/// <returns></returns>
//[HttpPost]
//public async Task<ApiResult<List<SystemMain>>> SystemMainList()
//{
// ApiResult<List<SystemMain>> apiResult = new ApiResult<List<SystemMain>>();
// try
// {
// var sWhere = "deleted = 0";
// var systemMainList = await backendRepository.GetAllAsync<SystemMain>("main_system", sWhere, null, "priority ASC, created_at DESC");
// apiResult.Code = "0000";
// apiResult.Data = systemMainList;
// }
// catch (Exception exception)
// {
// apiResult.Code = "9999";
// Logger.LogError("【" + controllerName + "/" + actionName + "】" + exception.Message);
// }
// return apiResult;
//}
}
}