diff --git a/Webzine.Repository.Contracts/IArtisteRepository.cs b/Webzine.Repository.Contracts/IArtisteRepository.cs
index 1e4a369..2f26de5 100644
--- a/Webzine.Repository.Contracts/IArtisteRepository.cs
+++ b/Webzine.Repository.Contracts/IArtisteRepository.cs
@@ -1,17 +1,46 @@
-// using Webzine.Entity;
-
namespace Webzine.Repository.Contracts
{
+ using Webzine.Entity;
+ ///
+ /// Défini une interface pour gérer les opérations de base de données liées aux artistes.
+ ///
public interface IArtisteRepository
{
- // void Add(Artiste artiste);
+ ///
+ /// Ajoute un nouvel artiste.
+ ///
+ /// L'artiste à ajouter à la collection. Ne peut pas être null.
+ void Add(Artiste artiste);
- // void Delete(Artiste artiste);
+ ///
+ /// Supprime un artiste.
+ ///
+ /// L'artiste à supprimer.
+ void Delete(Artiste artiste);
- // Artiste Find(int id);
+ ///
+ /// Récupère un artiste par son identifiant unique. Si aucun artiste n'est trouvé, retourne null.
+ ///
+ /// L'identifiant de l'artiste.
+ ///
+ Artiste Find(int id);
+ ///
+ /// Récupère un artiste par son nom. Si aucun artiste n'est trouvé, retourne null.
+ ///
+ /// Le nom de l'artiste.
+ /// L'artiste recherché ou null.
+ Artiste FindByName(string name);
- // IEnumerable FindAll();
+ ///
+ /// Récupère tous les artistes disponibles dans la collection. Si aucun artiste n'est trouvé, retourne une collection vide.
+ ///
+ /// Retourne une collection d'artistes.
+ IEnumerable FindAll();
- // void Update(Artiste artiste);
+ ///
+ /// Met à jour les informations d'un artiste existant dans la collection.
+ ///
+ /// L'artiste à mettre à jour.
+ void Update(Artiste artiste);
}
}
\ No newline at end of file
diff --git a/Webzine.Repository.Contracts/ICommentaireRepository.cs b/Webzine.Repository.Contracts/ICommentaireRepository.cs
index f1608b2..04fd1dd 100644
--- a/Webzine.Repository.Contracts/ICommentaireRepository.cs
+++ b/Webzine.Repository.Contracts/ICommentaireRepository.cs
@@ -1,15 +1,15 @@
-// using Webzine.Entity;
+using Webzine.Entity;
namespace Webzine.Repository.Contracts
{
public interface ICommentaireRepository
{
- // void Add(Commentaire commentaire);
+ void Add(Commentaire commentaire);
- // void Delete(Commentaire commentaire);
+ void Delete(Commentaire commentaire);
- // Commentaire Find(int id);
+ Commentaire Find(int id);
- // IEnumerable FindAll();
+ IEnumerable FindAll();
}
}
\ No newline at end of file
diff --git a/Webzine.Repository.Contracts/IStyleRepository.cs b/Webzine.Repository.Contracts/IStyleRepository.cs
index cceeae7..2630fc7 100644
--- a/Webzine.Repository.Contracts/IStyleRepository.cs
+++ b/Webzine.Repository.Contracts/IStyleRepository.cs
@@ -1,17 +1,41 @@
-// using Webzine.Entity;
+using Webzine.Entity;
namespace Webzine.Repository.Contracts
{
+ ///
+ /// Interface définissant les opérations de base pour le repository de styles, permettant d'ajouter, supprimer, trouver et mettre à jour des styles dans la source de données.
+ ///
public interface IStyleRepository
{
- // void Add(Style style);
+ ///
+ /// Ajoute un style à la liste des styles.
+ ///
+ /// L'objet style à ajouter.
+ void Add(Style style);
- // void Delete(Style style);
+ ///
+ /// Supprime un style de la liste des styles.
+ ///
+ /// L'objet style à supprimer.
+ void Delete(Style style);
- // Style Find(int id);
+ ///
+ /// Trouve un style dans la liste des styles en fonction de son identifiant.
+ ///
+ /// L'identifiant du style à trouver.
+ /// Le style correspondant à l'identifiant fourni, ou null si aucun style n'est trouvé.
+ Style Find(int id);
- // IEnumerable