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