|
|
|
@ -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
|
|
|
|
|
{
|
|
|
|
|