public PolicyToViewVM() { var repo = new PolicyRepository(); Categories = new List<SelectListItem>(); Policies = new List<Policy>(); var cats = repo.GetAllCategories(); foreach (var c in cats) { var s = new SelectListItem(); s.Text = c; s.Value = c ; Categories.Add(s); } }