Changed code to use a ViewBag so that the C# code can exist in the controller, not the cshtml.