Dynamically pass in different view models to the same partial view
Published in 2017-11-09 23:51:15Z
I have a partial view that contains data used in two places. Is it possible to dynamically pass in different viewmodels to the same partial view? I can't seem to find a straight answer. I've tried adding @model dynamic to the top of my view but my properties complain saying: "An expression tree may not contain a dynamic operation"