I am trying to access the Model data passed to the view in the action filter OnActionExecuted. Does anyone know if this is possible?
I am trying to do something like this:
public override void OnActionExecuted(ActionExecutedContext filterContext) { //get model data //... sitemap.SetCurrentNode(model.Name); }
Any advice?
The model is at:
filterContext.Controller.ViewData.Model
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With