You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
//using System;
|
|
//using System.Collections.Generic;
|
|
//using Application.Domain.Entities;
|
|
//using Application.Models;
|
|
//using Application.Services;
|
|
//using Infrastructure.Application;
|
|
//using Infrastructure.Data;
|
|
//using Infrastructure.Web.Mvc;
|
|
//using Microsoft.AspNetCore.Authorization;
|
|
//using Microsoft.AspNetCore.Mvc;
|
|
|
|
//namespace IoTNode.Areas.Admin.Controllers
|
|
//{
|
|
// [Authorize]
|
|
// [Area(nameof(Admin))]
|
|
// public class NodeController : CrudController<Node, PagedListModel<EditNodeModel>, EditNodeModel, EditNodeModel>
|
|
// {
|
|
// public NodeController(IRepository<Node> repo, INodeService nodeService) : base(repo)
|
|
// {
|
|
// this._nodeService = nodeService;
|
|
// }
|
|
|
|
// public override IActionResult Edit(EditNodeModel model)
|
|
// {
|
|
// if (ModelState.IsValid)
|
|
// {
|
|
// if (this._nodeService.EditNode(model))
|
|
// {
|
|
// return RedirectTo();
|
|
// }
|
|
// ModelState.AddModelError("", "服务器错误");
|
|
// }
|
|
// return View(model);
|
|
// }
|
|
|
|
// public override IActionResult Delete(List<Guid> list)
|
|
// {
|
|
// foreach (var id in list)
|
|
// {
|
|
// this._nodeService.DeleteNode(id);
|
|
// }
|
|
// return RedirectTo();
|
|
// }
|
|
// }
|
|
//} |