Ejemplo n.º 1
0
        public ActionResult Welcome()
        {
            ITutorRepo repo  = new TutorRepo();
            Tutor      tutor = repo.Get(Session["UserEmail"].ToString());

            return(View(tutor));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            List <String>    email     = new List <String>();
            List <Tutor>     tutorList = new List <Tutor>();
            IApplyInfoRepo   repo      = new ApplyInfoRepo();
            List <ApplyInfo> info      = repo.GetAll();

            foreach (var item in info)
            {
                email.Add(item.TutorEmail);
            }
            ITutorRepo tutorRepo = new TutorRepo();

            foreach (var mailId in email)
            {
                tutorList.Add(tutorRepo.Get(mailId));
            }

            return(View(tutorList));
        }
Ejemplo n.º 3
0
        public ActionResult UpdateTutor(int id)
        {
            ITutorRepo repo = new TutorRepo();

            return(View(repo.Get(id)));
        }