From ed54864fa89c729f33574555d50b779d24a6818d Mon Sep 17 00:00:00 2001 From: Anthony RICHARD Date: Sat, 6 May 2023 11:14:05 +0200 Subject: [PATCH] fix: fonction RemoveReview fonctionne --- Sources/Stim.Model/Game.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Stim.Model/Game.cs b/Sources/Stim.Model/Game.cs index f0e3d90..9f5bcf1 100644 --- a/Sources/Stim.Model/Game.cs +++ b/Sources/Stim.Model/Game.cs @@ -43,7 +43,7 @@ namespace Model public string[] Tags; - private List Reviews; + public List Reviews { get; } public Game(string name, string description, int year, string[] tags) { @@ -71,7 +71,7 @@ namespace Model } public void RemoveReview(Review review) { - Reviews.Add(review); + Reviews.Remove(review); } } }