public ActionResult SearchMatches()
        {
            ExpertiseManager        expertiseMng = new ExpertiseManager();
            List <ExpertiseContext> expertises   = expertiseMng.GetAllExpertises();

            ViewBag.Title = "SearchMatches";
            return(View(expertises));
        }
Beispiel #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));
        }
Beispiel #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));
        }