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.
24 lines
661 B
24 lines
661 B
using Application.Domain.Entities;
|
|
using Application.Models;
|
|
using Infrastructure.Application;
|
|
using Infrastructure.Data;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
|
|
namespace IoT.Shared.Areas.Admin.Controlls
|
|
{
|
|
[Authorize]
|
|
[Area(nameof(Admin))]
|
|
public class NodeController : SharedController<Node, PagedListModel<EditNodeModel>, EditNodeModel, EditNodeModel>
|
|
{
|
|
public NodeController(IRepository<Node> repo, IServiceProvider sp) : base(repo, sp)
|
|
{
|
|
}
|
|
|
|
public override string GetNodeNumber(EditNodeModel model)
|
|
{
|
|
return model.Number;
|
|
}
|
|
}
|
|
} |