Working with Blog Categories in Razor Views
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