예제 #1
0
        public ActionResult Create()
        {
            ViewBag.EmployerId   = new SelectList(employerService.GetEmployers(), "EmployerId", "EmployerName");
            ViewBag.CityId       = new SelectList(cityService.GetCities(), "CityId", "CityName");
            ViewBag.ExperienceId = new SelectList(experienceService.GetExperiences(), "ExperienceId", "ExperienceName");
            var socialrights     = new List <SocialRight>(socialService.GetSocialRights());
            var socialrightnames = new string[socialrights.Count()];

            for (int i = 0; i < socialrights.Count(); i++)
            {
                socialrightnames[i] = socialrights[i].SocialRightName;
            }
            ViewBag.SocialRightNames = socialrightnames;
            return(View());
        }
        public List <ExperienceDto> GetExperiences()
        {
            List <ExperienceDto> experienceList = _experienceService.GetExperiences();

            return(experienceList);
        }