public ISetupSource New() { var players = _repository.All(); var playersArray = players as IPlayer[] ?? players.ToArray(); var averageSkills = _averageSkillCalculator.Calculate(playersArray); return(new SetupSource(playersArray, averageSkills)); }
public IEnumerable <PlayerModel> GetPlayers() { var all = _repo.All(); return(all); }