❔ MVC - data is being passed to view, but not displayed
My app worked fine earlier and somehow I broke it, and I do not know how.
My model is full of data, and by putting a breakpoint in the razor code I can see that it is being passed to the view as well. However, once the view is rendered, the data is not there. See the total property in the screenshots below.
To further confuse things, this is only happening when using lambda expressions. I put a
Any ideas? Clearly I broke something but I have no idea what I did.
My model is full of data, and by putting a breakpoint in the razor code I can see that it is being passed to the view as well. However, once the view is rendered, the data is not there. See the total property in the screenshots below.
To further confuse things, this is only happening when using lambda expressions. I put a
<span>@Model.Total</span> line in just to test, and it is displaying the data in the view.Any ideas? Clearly I broke something but I have no idea what I did.





