diff --git a/Bootstrap.Client/Controllers/HomeController.cs b/Bootstrap.Client/Controllers/HomeController.cs
index dab8bed9..6cbc4321 100644
--- a/Bootstrap.Client/Controllers/HomeController.cs
+++ b/Bootstrap.Client/Controllers/HomeController.cs
@@ -1,7 +1,6 @@
using Bootstrap.Client.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
-using System.Diagnostics;
namespace Bootstrap.Client.Controllers
{
@@ -26,7 +25,7 @@ namespace Bootstrap.Client.Controllers
[AllowAnonymous]
public IActionResult Error(int id)
{
- return id == 404 ? View("NotFound") : View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
+ return id == 404 ? View("NotFound") : View();
}
}
}
diff --git a/Bootstrap.Client/Models/ErrorViewModel.cs b/Bootstrap.Client/Models/ErrorViewModel.cs
deleted file mode 100644
index 82071022..00000000
--- a/Bootstrap.Client/Models/ErrorViewModel.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-namespace Bootstrap.Client.Models
-{
- ///
- Request ID: @Model.RequestId
-
- Swapping to Development environment will display more detailed information about the error that occurred. -
-- Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. -
+@section javascript { + +} +