private void InitViewBag() { var temp = _practiceRepository.GetSelectList(FacilityType.Practice).ToList(); temp.Insert(0, new SelectListItem() { Value = "-1", Text = "(Select this choice if the correct Practice is not in the list and you may then add it below)" }); ViewBag.PracticeSelectList = new SelectList(temp, "Value", "Text"); }
private void InitViewBag() { ViewBag.UserSelectList = _usersRepository.GetSelectList(); ViewBag.PracticeSelectList = _practiceRepository.GetSelectList(FacilityType.Legal); ViewBag.HospitalSelectList = _hospitalRepository.GetSelectList(); ViewBag.PVGMembersSelectList = _pvgRepository.GetSelectList(); var temp = _departmentsRepository.GetSelectList().ToList(); temp.Insert(0, new SelectListItem() { Value = "-1", Text = "(Select this choice if the correct Department is not shown and enter in New Department below)" }); ViewBag.DepartmentsSelectList = new SelectList(temp, "Value", "Text"); }