示例#1
0
 public void UpdateChampionship(Championship championship)
 {
     Id = championship.Id;
     ChampionshipName  = championship.ChampionshipName;
     IsActive          = championship.IsActive;
     Teams             = championship.Teams;
     ChampionshipGames = championship.ChampionshipGames;
     UpdatedOn         = DateTime.Now;
 }
 public ChampionshipGame(Championship championship, Team homeTeam, Team awayTeam)
 {
     Id           = Guid.NewGuid();
     Championship = championship;
     HomeTeam     = homeTeam;
     AwayTeam     = awayTeam;
     HomeScore    = 0;
     AwayScore    = 0;
     CreatedOn    = DateTime.Now;
 }