Пример #1
0
        public ActionResult Index()
        {
            ViewBag.userfname = System.Web.HttpContext.Current.Session["fname"] as String;
            MentorList result = ch.GetInitMentorList();

            return(View(result));
        }
Пример #2
0
        public MentorSearchResults FindMentors(string subject)
        {
            List <Mentor>       _list = mr.SelectMentorList(subject);
            MentorList          res   = new MentorList();
            MentorSearchResults msr   = new MentorSearchResults();

            msr._mentorSearchResults = _list;
            return(msr);
        }
Пример #3
0
        public MentorList GetInitMentorList()
        {
            List <Mentor>       _list = mr.SelectInitialMentorList();
            MentorList          res   = new MentorList();
            MentorSearchResults ms    = new MentorSearchResults();

            ms._mentorSearchResults = _list;
            res._mentorList         = ms;
            return(res);
        }