rfharvest/RFH — Issue #36: /views/category/index.cshtml should use viewmodel
Author: andrewdothay
Created: 2011-10-26 03:34:28+00:00
State: open

The view currently uses the ViewBag to carry two values, use a custom viewmodel instead.

1. Create a viewmodel in the models folder, name it CategoryIndexViewModel.
2. Replace @model IEnumerable with @model CategoryIndexViewModel in the razor view
3. Edit the view to use the new model