public override object OnAfterExecute(IRequestContext requestContext, object response) { _sessionManager.Commit(); return(response); // Called just after any Action is executed, you can modify the response returned here as well }