Exemplo n.º 1
0
        public IActionResult Error()
        {
            var error = new ErrorViewModel()
            {
                RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier
            };

            if (HttpContext.Response.StatusCode == 500)
            {
                error.Error500();
            }
            return(View(error));
        }