I am moving the views of an old project from ASPX to Razor, I have almost finished with it without any major issues, but I have come to this kind of problem with some strongly typed views. The thing is that when the controller returns the view using
return View(model)
the View Egine finds the proper views, always and for all the controller actions, but the model is always null when the View try to access it. But if I use
return View (ViewName, model)
Everything works like a charm.
So my question is why is the first option working perfectly when the views are using ASPX and not with Razor?
and
Why is it finding the view but passing a null model?