public static void Main()
new Jogo { TimeA = "T1", TimeB = "T2", PlacarTimeA = 2, PlacarTimeB = 3 },
new Jogo { TimeA = "T2", TimeB = "T1", PlacarTimeA = 4, PlacarTimeB = 1 }
var timesA = todosJogos.Select(j => new {
Vitorias = j.PlacarTimeA > j.PlacarTimeB ? 1 : 0,
Empates = j.PlacarTimeA == j.PlacarTimeB ? 1 : 0,
Derrotas = j.PlacarTimeA < j.PlacarTimeB ? 1 : 0
var timesB = todosJogos.Select(j => new {
Vitorias = j.PlacarTimeB > j.PlacarTimeA ? 1 : 0,
Empates = j.PlacarTimeB == j.PlacarTimeA ? 1 : 0,
Derrotas = j.PlacarTimeB < j.PlacarTimeA ? 1 : 0
var resultado = timesA.Concat(timesB)
Placar = g.Sum(j => j.Placar),
Vitorias = g.Sum(j => j.Vitorias),
Empates = g.Sum(j => j.Empates),
Derrotas = g.Sum(j => j.Derrotas)
public string TimeA {get;set;}
public string TimeB {get;set;}
public int PlacarTimeA {get;set;}
public int PlacarTimeB {get;set;}