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 { private readonly IBackendRepository backendRepository; public EmergencyDeviceMenuController(IBackendRepository backendRepository) { this.backendRepository = backendRepository; } public IActionResult Index() { return View(); } /// /// 取得系統大類清單 /// /// //[HttpPost] //public async Task>> SystemMainList() //{ // ApiResult> apiResult = new ApiResult>(); // try // { // var sWhere = "deleted = 0"; // var systemMainList = await backendRepository.GetAllAsync("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; //} } }