Пример #1
0
 private async Task HandleRouteCreationException(HttpContext httpContext, TelemetryScopedLogger scopedLogger, RouteCreationException rce)
 {
     LogError(scopedLogger, rce);
     await HandleHttpStatusExceptionAsync(httpContext, rce.Message, HttpStatusCode.BadRequest);
 }
Пример #2
0
 private IActionResult HandleRouteCreationException(ErrorViewModel errorViewModel, RouteCreationException routeCreationException)
 {
     errorViewModel.TechnicalErrors = new List <string> {
         routeCreationException.Message
     };
     return(View(errorViewModel));
 }