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); }
// GET: EducationLevel public async Task <ActionResult> Index() { var EducationLevels = await _EducationLevel.GetAll(); return(View(EducationLevels)); }
public IEnumerable <EducationLevel> GetAllEducationLevel() { return(educationLevelRepository.GetAll()); }
public List <EducationLevelDto> GetAll(UserParams userParams) { return(_educationLevelRepository.GetAll().Pager(userParams).ToList().Mapper()); }