public ActionResult Index() { ViewBag.userfname = System.Web.HttpContext.Current.Session["fname"] as String; MentorList result = ch.GetInitMentorList(); return(View(result)); }
public MentorSearchResults FindMentors(string subject) { List <Mentor> _list = mr.SelectMentorList(subject); MentorList res = new MentorList(); MentorSearchResults msr = new MentorSearchResults(); msr._mentorSearchResults = _list; return(msr); }
public MentorList GetInitMentorList() { List <Mentor> _list = mr.SelectInitialMentorList(); MentorList res = new MentorList(); MentorSearchResults ms = new MentorSearchResults(); ms._mentorSearchResults = _list; res._mentorList = ms; return(res); }