public List <FactionDto> FindFactions() { List <FactionDto> result = new List <FactionDto>(); //List<FactionPlayer> collection = _factionPlayerService.GetAll(); List <Faction> factions = _factionService.GetAllFactions(); foreach (Faction faction in factions) { FactionDto factionDto = _factionConverter.convert(_factionService.FindById(faction.Id)); result.Add(factionDto); } return(result); }
public FactionDto Map(Faction faction) { FactionDto factionDto = new FactionDto(faction); return(factionDto); }