From 7fd34380ea7789ab448769fc0b4cec1228e55255 Mon Sep 17 00:00:00 2001 From: Arafamamadouelaphi <92931011+Arafamamadouelaphi@users.noreply.github.com> Date: Mon, 24 Oct 2022 14:35:11 +0100 Subject: [PATCH] stubequipeAsyncAwait --- Sources/BowlingStub/StubJoueur.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/BowlingStub/StubJoueur.cs b/Sources/BowlingStub/StubJoueur.cs index 72e96fd..89b787f 100644 --- a/Sources/BowlingStub/StubJoueur.cs +++ b/Sources/BowlingStub/StubJoueur.cs @@ -10,7 +10,7 @@ namespace BowlingStub private List listJoueurs = new List(); - public bool Add(Joueur data) + public async Task Add(Joueur data) { if (data != null) { @@ -20,22 +20,22 @@ namespace BowlingStub return false; } - public bool Delete(Joueur data) + public async Task Delete(Joueur data) { if (data != null) { listJoueurs.Remove(data); - return true; + return true; } return false; } - public IEnumerable GetAll() + public async Task> GetAll() { return listJoueurs; } //n represente le nbr de joueurs a creer dans la liste - public IEnumerable GetAllJoueur(int n = 10) + public async Task >GetAllJoueur(int n = 10) { for (int i = 0; i < n; i++) { @@ -44,17 +44,17 @@ namespace BowlingStub return listJoueurs; } ///ged - public Joueur GetDataWithId(int id) + public async TaskGetDataWithId (int id) { throw new NotImplementedException(); } - public Joueur GetDataWithName(string name) + public async Task GetDataWithName(string name) { throw new NotImplementedException(); }// - public bool Update(Joueur data) + public async Task Update(Joueur data) { if (data != null) {