private static HttpResponseMessage HandleExceptionInternal(ExceptionContext context, ApiVersionFormatException exception) { if (exception == null) { return null; } return context.Request.CreateErrorResponse(HttpStatusCode.BadRequest, ExceptionResources.CannotDetermineRequestVersion, exception); }
private static HttpResponseMessage HandleExceptionInternal(ExceptionContext context, ApiVersionFormatException exception) { if (exception == null) { return(null); } return(context.Request.CreateErrorResponse(HttpStatusCode.BadRequest, ExceptionResources.CannotDetermineRequestVersion, exception)); }