diff --git a/projects/IoT.Shared/Areas/Admin/Controlls/NodeController.cs b/projects/IoT.Shared/Areas/Admin/Controlls/NodeController.cs index baa4ff38..651c59b7 100644 --- a/projects/IoT.Shared/Areas/Admin/Controlls/NodeController.cs +++ b/projects/IoT.Shared/Areas/Admin/Controlls/NodeController.cs @@ -1,15 +1,13 @@ -using Application.Domain.Entities; +using Application.Domain.Entities; using Application.Models; using Infrastructure.Application; using Infrastructure.Data; using Infrastructure.Extensions; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; namespace IoT.Shared.Areas.Admin.Controlls { @@ -54,10 +52,10 @@ namespace IoT.Shared.Areas.Admin.Controlls catch (Exception ex) { ex.PrintStack(); - return RedirectTo(rawMesage: ex.Message); + return Error(ex.Message); } } - return RedirectTo(); + return Success(); } else { diff --git a/projects/WebMVC/wwwroot/components/shared/layout.html b/projects/WebMVC/wwwroot/components/shared/layout.html index fbc1e77a..27277ce1 100644 --- a/projects/WebMVC/wwwroot/components/shared/layout.html +++ b/projects/WebMVC/wwwroot/components/shared/layout.html @@ -31,7 +31,7 @@