コード例 #1
0
        public ActionResult SearchMatches()
        {
            ExpertiseManager        expertiseMng = new ExpertiseManager();
            List <ExpertiseContext> expertises   = expertiseMng.GetAllExpertises();

            ViewBag.Title = "SearchMatches";
            return(View(expertises));
        }
コード例 #2
0
        public ActionResult PersonalGymProfile(/*GymContext gym*/)
        {
            ViewBag.Title = "PersonalGymProfile";
            var gymctx = (GymContext)TempData["gymProfileData"];
            ExpertiseManager expertiseManager = new ExpertiseManager();

            gymctx.ExpertisesOptions = expertiseManager.GetAllExpertises();

            return(View(gymctx));
        }
コード例 #3
0
        public ActionResult PersonalTrainerProfile(/*TrainerContext trainer*/)
        {
            ViewBag.Title = "PersonalTrainerProfile";
            var trainerctx = (TrainerContext)TempData["trainerProfileData"];

            ExpertiseManager expertiseManager = new ExpertiseManager();
            List <String>    images           = userManager.GetUserImagesPath(trainerctx.Id);

            trainerctx.imagesList        = images;
            trainerctx.ExpertisesOptions = expertiseManager.GetAllExpertises();
            //List<ExpertiseContext> expertisesOptions = await expertiseManager.GetAllExpertises();
            //trainerctx.ExpertisesOptions = expertisesOptions;

            return(View(trainerctx));
        }