Esempio n. 1
0
        /// <summary>
        /// Create TeamInTableService instance and get teams stats
        /// </summary>
        /// <returns></returns>
        private ICollection <TeamInTableViewModel> GetTeamsStats()
        {
            var teamsInTable = new List <TeamInTableViewModel>();

            foreach (var team in teams)
            {
                var service = new TeamInTableService(team.Id, team.Name);
                teamsInTable.Add(service.GetTeamInTable());
            }

            return(teamsInTable);
        }
        /// <summary>
        /// Create TeamInTableService instance and get teams stats
        /// </summary>
        /// <returns></returns>
        private ICollection<TeamInTableViewModel> GetTeamsStats()
        {
            var teamsInTable = new List<TeamInTableViewModel>();

            foreach (var team in teams)
            {
                var service = new TeamInTableService(team.Id, team.Name);
                teamsInTable.Add(service.GetTeamInTable());
            }

            return teamsInTable;
        }