/// <summary> /// Builds the dropdownlist for Branche /// </summary> /// <param name="brancheList">list that needs to be filled</param> public void buildDropDownListBranche(DropDownList brancheList) { BrancheMapping brancheMapping = new BrancheMapping(); service = new MatchyService(); MatchyBackend.Branche[] branches = service.GetBranche(0); branche = new Branche[branches.Length]; brancheList.Items.Add(new ListItem("Branches", "Default")); for (int i = 0; i < branches.Length; i++) { branche[i] = brancheMapping.mapFromService(branches[i]); brancheList.Items.Add(new ListItem(branches[i].Description, branches[i].branche_ID.ToString())); } }
public Search MapFromService(MatchyBackend.Search search) { var eduMapper = new EducationMapper(); var brancheMapper = new BrancheMapping(); return new Search() { SearchTerm = search.SearchTerm, Education = eduMapper.MapFromService(search.Education), City = search.City, Hours = search.Hours, Branche = brancheMapper.mapFromService(search.Branche) }; }