Ajout de l'algorithme pour gérer les sacs.

This commit is contained in:
2019-05-30 01:45:56 +02:00
parent 37e003f0e4
commit af79011d14
3 changed files with 47 additions and 26 deletions

View File

@@ -73,13 +73,20 @@ namespace LaDOSE.Business.Provider
var participentResults = await new ParticipantsQuery(){tournamentID = idTournament }.call(ApiCaller);
List<Participent> participants = new List<Participent>();
participentResults.ForEach(w => participants.Add(new Participent()
participentResults.ForEach(w =>
{
Id = w.id,
Name = w.name,
Rank = w.final_rank,
IsMember = true,
}));
if (w.active)
{
participants.Add(new Participent()
{
Id = w.id,
Name = w.name,
Rank = w.final_rank,
IsMember = false,
});
}
});
return participants;
}