MVC Model is null in OnExecuted action filter … or a more elegant way to set the model?
问题 I have an ActionFilter with an override on the OnActionExecuted method. The filterContext.Controller.ViewData.Model is always null on a POST operation. I did find the following article that seems to be saying that it should not be null but this must have been an earlier version of MVC. This is MVC3. What should I be getting? Model availability inside ActionFilter UPDATE: I've figured out the answer to the original question. I had a custom ActionResult that outputs JSON with a custom date