public OrcFormData GetOrcFormData() { return(new OrcFormData { Weapons = WeaponType.WeaponTypes.Select(w => w.ToString()).Distinct().ToList(), OrcRaces = OrcRaceType.OrcRaceTypes.Select(o => o.ToString()).ToList(), Hordes = hordeRepository.GetAll() .Select(horde => mapper.Map <HordeListItem>(horde)).ToList() }); }
public IEnumerable <HordeDetails> GetAll() { List <Horde> hordeList = hordeRepository.GetAll(); return(hordeList.Select(horde => mapper.Map <HordeDetails>(horde))); }