I have a Web API application that I need to get ahold of the return value of some of the API endpoints via an ActionFilter's OnActionExecuted method
I'm using a custom attribute to identify the endpoints that have data that I need to modify, but I can't seem to find the actual result object from within the HttpActionExecutedContext.
Thanks for any help!
You can get the returned value through the
Response.Content
property. If your action has returned an object you can cast it toObjectContent
from where you can get the actual instance of the returned value: