Now it is possible to finnish a tournament with scores and mails
This commit is contained in:
@ -126,5 +126,19 @@ namespace TrackerLibrary.DataAccess
|
||||
{
|
||||
model.UpdateMatchupToFile();
|
||||
}
|
||||
|
||||
public void CompleteTournament(TournamentModel model)
|
||||
{
|
||||
List<TournamentModel> tournaments = GlobalConfig.TournamentFile
|
||||
.FullFilePath()
|
||||
.LoadFile()
|
||||
.ConvertToTournamentModels();
|
||||
|
||||
tournaments.Remove(model);
|
||||
|
||||
tournaments.SaveToTournamentFile();
|
||||
|
||||
TournamentLogic.UpdateTournamentResults(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user