[Solved] get viewModel from the controllerContext MVC [closed]
Try: ControllerContext.Controller.ViewData.Model It’s not clear when exactly you need to fetch that data from the context, but you have to realize that the ViewModel returned to the View is only available after the OnResultExecuting event (same method on ActionFilter as well). solved get viewModel from the controllerContext MVC [closed]