コード例 #1
0
        public async Task <ActionResult> EditPortfolio()
        {
            var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);

            var InterpersonalSkills = await interpersonalSkillRepositoroes.GettAllInterpersonalSkill();

            ViewBag.interpersonalSkills = InterpersonalSkills;

            var TechnicalSkills = await technicalSkillRepositories.GetAllTechnicalSkill();

            ViewBag.TechnicalSkills = TechnicalSkills;

            var Universities = await universityRepositories.GettAllUniversities();

            ViewBag.Universities = Universities;

            var Degree = await degreeRepositories.getAllDegree();

            ViewBag.Degree = Degree;

            //var project = await projectRepositories.GetAllProject();
            //ViewBag.project = project;

            var editUser = userRepositories.EditUser(userId);


            return(View(editUser));
        }
コード例 #2
0
        public async Task <ActionResult <ICollection <User> > > CreatePortfolio()
        {
            var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);

            var InterpersonalSkills = await interpersonalSkillRepositoroes.GettAllInterpersonalSkill();

            ViewBag.interpersonalSkills = InterpersonalSkills;

            var TechnicalSkills = await technicalSkillRepositories.GetAllTechnicalSkill();

            ViewBag.TechnicalSkills = TechnicalSkills;

            var Universities = await universityRepositories.GettAllUniversities();

            ViewBag.Universities = Universities;

            var Degree = await degreeRepositories.getAllDegree();

            ViewBag.Degree = Degree;
            return(View());
        }