Ejemplo n.º 1
0
        public async Task <ActionResult <Advertisiment> > Create()
        {
            Advertisiment value = new Advertisiment();

            ViewBag.GroupId    = new SelectList(await _Group.GetAll(), "Id", "GroupName");
            ViewBag.ServiceId  = new SelectList(await _service.GetAll(), "Id", "ServiceName");
            ViewBag.SubGroupId = new SelectList(await _SubGroup.GetAll(), "Id", "SubGroupName");
            ViewBag.CategoryId = new SelectList(await _category.GetAll(), "Id", "CategoryName");
            ViewBag.PostId     = new SelectList(await _post.GetAll(), "Id", "PostName");
            ViewBag.MInEdu     = new SelectList(await _educationLavel.GetAll(), "Id", "Name");
            IEnumerable <EthinicalGroup> a = await _ethinicalGroup.GetAll();

            ViewBag.EthinicalGroup = a.ToList();
            List <ExamViewModel> ev = new List <ExamViewModel>()
            {
                new ExamViewModel
                {
                    ExamType = "Experimental"
                },
                new ExamViewModel {
                    ExamType = "Interview"
                },
                new ExamViewModel {
                    ExamType = "Written"
                },
            };

            //List<string> Exam = new List<string>()
            //{
            // "written", "Interview", "Experimental"

            //};

            ViewBag.Exam = ev;
            return(View());
        }
        public List <SelectListItem> GetEducationLevelList()
        {
            var model = new List <SelectListItem>();

            _educationLevelRepository.GetAll().ToList().ForEach(x =>
            {
                model.Add(new SelectListItem()
                {
                    Text  = x.EducationName,
                    Value = x.Id.ToString()
                });
            });

            return(model);
        }
Ejemplo n.º 3
0
        // GET: EducationLevel
        public async Task <ActionResult> Index()
        {
            var EducationLevels = await _EducationLevel.GetAll();

            return(View(EducationLevels));
        }
Ejemplo n.º 4
0
 public IEnumerable <EducationLevel> GetAllEducationLevel()
 {
     return(educationLevelRepository.GetAll());
 }
Ejemplo n.º 5
0
 public List <EducationLevelDto> GetAll(UserParams userParams)
 {
     return(_educationLevelRepository.GetAll().Pager(userParams).ToList().Mapper());
 }