Archive: August 2013

Working with Blog Categories in Razor Views

Scott Walker · Aug 13, 2013

My Blog model has categories associated with it (MVC3, Razor, etc.), so in order to edit which category goes with each blog I used the code below. The code below loops through each category so that they are available.

CheckCategory is a function that loops through all of the currently selected categories and returns true so that I can mark a category as being selected.

RAZOR VIEW

đŸ’Ŧ 0 Razor