Пример #1
0
        public MenuEntriesListViewModel GetMenusForUser(string username)
        {
            var menus = new MenuEntriesListViewModel();

            menus.Title = "Main Navigation";

            menus.Add(new MenuEntriesViewModel() { Controller = "Home", Action = "Index", Text = "Home" });
            return menus;
        }
Пример #2
0
 public MenuEntriesViewModel()
 {
     Childs = new MenuEntriesListViewModel();
 }