diff --git a/Webzine.Business/TitreAdminService.cs b/Webzine.Business/TitreAdminService.cs index fba8309..e23af11 100644 --- a/Webzine.Business/TitreAdminService.cs +++ b/Webzine.Business/TitreAdminService.cs @@ -1,5 +1,7 @@ namespace Webzine.Business; +using Microsoft.Extensions.Logging; + using Webzine.Business.Contracts; using Webzine.Business.Contracts.Dto; using Webzine.Entity; diff --git a/Webzine.Business/Webzine.Business.csproj b/Webzine.Business/Webzine.Business.csproj index ee626b0..8328d31 100644 --- a/Webzine.Business/Webzine.Business.csproj +++ b/Webzine.Business/Webzine.Business.csproj @@ -8,6 +8,7 @@ + all diff --git a/Webzine.Repository.Contracts/ICommentaireRepository.cs b/Webzine.Repository.Contracts/ICommentaireRepository.cs index c87fb9e..add20ef 100644 --- a/Webzine.Repository.Contracts/ICommentaireRepository.cs +++ b/Webzine.Repository.Contracts/ICommentaireRepository.cs @@ -40,5 +40,11 @@ namespace Webzine.Repository.Contracts /// Le nombre maximum de commentaires à récupérer. /// Une collection de commentaires paginée. IEnumerable FindCommentaires(int offset, int limit); + + /// + /// Retourne le nombre total de commentaires dans la source de données. + /// + /// Le nombre total de commentaires. + int Count(); } } \ No newline at end of file diff --git a/Webzine.Repository.Contracts/IStyleRepository.cs b/Webzine.Repository.Contracts/IStyleRepository.cs index 0ea9ba3..56a2f28 100644 --- a/Webzine.Repository.Contracts/IStyleRepository.cs +++ b/Webzine.Repository.Contracts/IStyleRepository.cs @@ -43,5 +43,13 @@ namespace Webzine.Repository.Contracts /// /// Le nombre total de styles présents dans la liste. int Count(); + + /// + /// Recherche les styles dans la liste des styles en fonction de l'offset et de la limite spécifiés, permettant ainsi une pagination des résultats. + /// + /// Le nombre de styles à ignorer avant de commencer à retourner les résultats. + /// Le nombre maximum de styles à retourner. + /// Une collection de styles correspondant au critère de pagination, triée par libellé. + IEnumerable