Beispiel #1
0
        public IActionResult Error()
        {
            var errorModel = new ErrorViewModel {
                RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier
            };

            _logger.LogError($"Error: {errorModel.ToString()}");
            return(View(errorModel));
        }