refactor: #93 implement methods for managing titles in DbTitreRepository and LocalTitreRepository

This commit is contained in:
mirage
2026-03-25 09:44:13 +01:00
parent 970ba78bb5
commit 72fb708ffd
3 changed files with 155 additions and 7 deletions

View File

@@ -4,26 +4,26 @@ namespace Webzine.Repository.Contracts
{
public interface ITitreRepository
{
// void Add(Titre titre);
void Add(Titre titre);
// int Count();
int Count();
// void Delete(Titre titre);
void Delete(Titre titre);
Titre? Find(int idTitre);
// IEnumerable<Titre> FindTitres(int offset, int limit);
IEnumerable<Titre> FindTitres(int offset, int limit);
IEnumerable<Titre> FindAll();
// void IncrementNbLectures(Titre titre);
void IncrementNbLectures(Titre titre);
// void IncrementNbLikes(Titre titre);
void IncrementNbLikes(Titre titre);
IEnumerable<Titre> Search(string mot);
IEnumerable<Titre> SearchByStyle(string libelle);
// void Update(Titre titre);
void Update(Titre titre);
}
}