public override void OnException(HttpActionExecutedContext context) { context.Response = FilterHelper.ErrorResponse(context.Exception.Message); logger?.LogException(loggerSource, context.Exception); }