Fix update/delete modals JS functions not working

This commit is contained in:
Tech Garage 2023-03-05 00:02:39 +03:30
parent 42b17455ca
commit 2df549cfc0
12 changed files with 107 additions and 107 deletions

View file

@ -9,20 +9,6 @@ using MTWireGuard.Repositories;
using MTWireGuard.Services;
using System.Diagnostics;
#region Error Handling
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler);
static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e)
{
Exception ex = e.ExceptionObject as Exception;
if (e.IsTerminating)
Debug.WriteLine($"[+] {ex.Message}");
else
Debug.WriteLine($"[-] {ex.Message}");
throw ex;
}
#endregion
var builder = WebApplication.CreateBuilder(args);
using DBContext context = new();
@ -106,6 +92,7 @@ else
});
app.UseDependencyCheck();
//app.UseExceptionHandling();
//app.UseAntiForgery();
app.UseRouting();