How to bind Layout with Model in MVC?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Nov 9, 2020, 9:35 PM EST
- Use a Base View Model and inherit all models with that.
- Create a Action Filter (You don't need to populate model each time in every view)
https://www.sharpencode.com/article/MVC/filters-in-asp-net-mvc/actionfilter