예제 #1
0
        public decimal GetSeassonTotlaSalary(Season season)
        {
            decimal totalSalary = 0;

            foreach (var playerInTeam in PlayerInTeam.Where(pit => pit.Season == season))
            {
                totalSalary += playerInTeam.Salary;
            }
            return(totalSalary);
        }
예제 #2
0
 public PlayerInTeam GetTeamBySeason(Season season)
 {
     return(PlayerInTeam.Where(pt => pt.Season == season).FirstOrDefault());
 }