Skip to main content
edited tags
Link
200_success
  • 145.7k
  • 22
  • 191
  • 481
added 119 characters in body
Source Link
toddmo
  • 121
  • 3

drop-downs for quick navigation through the object hierarchy

More Details

More Details

drop-downs for quick navigation through the object hierarchy

More Details

added 553 characters in body; edited title
Source Link
toddmo
  • 121
  • 3

Navigation Menu Code went from mvc controller into the view model

TL;DR I had a bunch of "procedural" code in thea navigation controller and now it's properties in the view model, which deals with menu items and type-ahead drop-downs to quickly get to any object in the object hierarchy. All the code has to do with is getting the data ready to be consumed by the view. There is no business logic in the code listing.

More Details

I'm using the MvcSiteMap and built MenuItems around that to store the objects in session. Then I implemented a "quick navigation" scheme where you can pick what level you want to go to and it will dynamically build a set of drop-downs to let you quickly traverse type-ahead drop-downs to select the object or list you want to work with. This controller / view implements that page which shows the drop-downs.

Code went from mvc controller into the view model

TL;DR I had a bunch of "procedural" code in the controller and now it's properties in the view model. All the code has to do with is getting the data ready to be consumed by the view. There is no business logic in the code listing.

Navigation Menu Code went from mvc controller into the view model

TL;DR I had a bunch of "procedural" code in a navigation controller and now it's properties in the view model, which deals with menu items and type-ahead drop-downs to quickly get to any object in the object hierarchy. All the code has to do with is getting the data ready to be consumed by the view. There is no business logic in the code listing.

More Details

I'm using the MvcSiteMap and built MenuItems around that to store the objects in session. Then I implemented a "quick navigation" scheme where you can pick what level you want to go to and it will dynamically build a set of drop-downs to let you quickly traverse type-ahead drop-downs to select the object or list you want to work with. This controller / view implements that page which shows the drop-downs.

Source Link
toddmo
  • 121
  • 3
Loading