public ActionResult CheckBoxListPartial() { List <string> Actors = new List <string>(); var wid = scheduleRepo.GetAllSchedules().Where(x => x.PublicKey == PUBLICKEY).FirstOrDefault().WID; var actors = scheduleRepo.GetAllActors().Where(x => x.WID == wid); foreach (var actor in actors) { Actors.Add(actor.Username); } Session["actors"] = Actors; return(PartialView("_CheckBoxListPartial_YourSchedule")); }