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