// This is a staff-only method public ActionResult List() { var data = MentorHelper.GetMentors(ref _db); ViewBag.Mentors = data.ToList(); return(View()); }
public MenteeController() { ViewBag.MenteesDropDownList = MentorHelper.GetMenteesDropdownList(ref this._db); ViewBag.MentorsDropDownList = MentorHelper.GetMentorsDropdownList(ref this._db); ViewBag.Mentees = MentorHelper.GetMentees(ref this._db); ViewBag.Mentors = MentorHelper.GetMentors(ref this._db); ViewBag.States = _db.StateList; ViewBag.Cities = _db.CityList; ViewBag.Prefixes = _db.Prefixes; ViewBag.Suffixes = _db.Suffixes; ViewBag.Genders = _db.Genders; ViewBag.Races = _db.Races; ViewBag.YesNoList = _db.YesNoList; }