Déplacement des fonctions Admin dans GameHandler

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent 2e812dc73c
commit 48575315e8

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -14,7 +15,23 @@ namespace Model
} }
public GameHandler() public GameHandler()
{ {
List<Game> gamesList=new List<Game>(); List<Game> gamesList = new List<Game>();
}
public void AddGametoGamesList(List<Game> gamesList, Game game)
{
gamesList.Add(game);
}
public void RemoveGameFromGamesList(List<Game> gamesList, Game game)
{
gamesList.Remove(game);
}
public void DelCom(Game game, Review review, int role)
{
if (role >= 1)
{
game.RemoveReview(review);
}
return;
} }
} }
} }

Loading…
Cancel
Save