|
|
|
@ -9,6 +9,7 @@ using IoTShared.Services;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Microsoft.AspNetCore.SignalR;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace IoTCenter.Areas.Admin.Controllers
|
|
|
|
|
{
|
|
|
|
@ -23,6 +24,12 @@ namespace IoTCenter.Areas.Admin.Controllers
|
|
|
|
|
this._pageHubContext = pageHubContext;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override IActionResult Add()
|
|
|
|
|
{
|
|
|
|
|
var model = new EditNodeModel { Number = Guid.NewGuid().ToBase62() };
|
|
|
|
|
return View(model);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override IActionResult Edit(EditNodeModel model)
|
|
|
|
|
{
|
|
|
|
|
if (ModelState.IsValid)
|
|
|
|
|