views:

438

answers:

1

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?

+1  A: 

The model is at:

filterContext.Controller.ViewData.Model
Steven Lyons
Perfect. Thanks!
ebrown