We've a lots of controllers which return JSON result to the View. The view needs to be dynamic based on user's contract type and user's home location.
I'm thinking of passing contract type and other properties using MVC 3.0 ViewBag object. View then access this object and toggle the UI.
Could some one help me if this is the best approach? The draw back of this approach is that every controller needs to pass viewbag to the UI or is it good to store the required object in session and access it from View.
Thanks.