Пример #1
0
 public IActionResult UserInfo()
 {
     ViewBag.Users                   = userRepository.GetValidUser();
     ViewBag.UserUniversities        = userRepository.GetUserUniversities();
     ViewBag.Universities            = userUniversitiesRepository.GetUniversities();
     ViewBag.Degrees                 = degreeRepository.GetDegrees();
     ViewBag.UserTechnicalSkills     = userRepository.GetUserTechnicalSkills();
     ViewBag.TechnicalSkills         = userSkillsRepository.GetTechnicalSkills();
     ViewBag.UserInterpersonalSkills = userRepository.GetUserInterpersonalSkills();
     ViewBag.InterpersonalSkills     = userSkillsRepository.GetInterpersonalSkills();
     ViewBag.UserProjects            = userRepository.GetProjects();
     return(View());
 }
Пример #2
0
        public IActionResult UserInfo()
        {
            var user = userRepository.GetUserById(User.FindFirstValue(ClaimTypes.NameIdentifier));

            if (user.FirstName == null)
            {
                var TechnicalSkills = userSkillsRepository.GetTechnicalSkills();
                ViewBag.technicalSkills = TechnicalSkills;
                var InterpersonalSkills = userSkillsRepository.GetInterpersonalSkills();
                ViewBag.interpersonalSkills = InterpersonalSkills;
                var Universities = userUniversitiesRepository.GetUniversities();
                ViewBag.universities = Universities;
                var Degrees = degreeRepository.GetDegrees();
                ViewBag.degrees = Degrees;
                return(View());
            }
            else
            {
                return(RedirectToAction("UserPortfolio", "User", new { Id = user.Id }));
            }
        }