I have following ActionFilter attributes implemented for web apis:
LogRequest: This logs the request and response inOnActionExecutedmethod.ValidateModel: This validates the model and returnsBadRequestby settingResponsein OnActionExecuting` method.
Now the problem is that - requests for which we have returned BadRequest (from ValidateModel attribute) are not being logged because OnActionExecuted (of LogRequest attribute) is not getting fired.
Is there any way I can fire OnActionExecuted intentionally?