Right. I think i will wait a bit as we are in phase of requirement gathering. After we have finalized i will review where to prepare data. Anyhow guidelines you mentioned can be used as rule of thumb in mos cases. Thanks.
On Thu, Oct 29, 2009 at 4:42 PM, Antonio Petrelli < [email protected]> wrote: > 2009/10/29 anyz <[email protected]>: > > Thanks a lot. Your comments are very helpful. I believe with view data > you > > mean that is kind of static data not tied to business logic. For example > > menus soemtime are dependent on Roles and/or business rules. In that > case > > menus should also be loaded from controller. Is it correct? > > In fact I believe that menus are *always* view data. Even if they are > dependent on business rules, they should loaded where they belong as > they do not make sense in other parts of the page. > Obviously IMHO. Ask your project leader (if you're not him/her :-D ) > because this is an interesting point of discussion. > > Antonio >
