diff --git a/EPAServeur/IServices/IFormationService.cs b/EPAServeur/IServices/IFormationService.cs index 4a5e172..0fbf2f3 100644 --- a/EPAServeur/IServices/IFormationService.cs +++ b/EPAServeur/IServices/IFormationService.cs @@ -10,31 +10,17 @@ namespace EPAServeur.IServices { public interface IFormationService { - FormationDTO GetFormationById(long? idFormation); - Task GetFormationByIdAsync(long? idFormation); - IEnumerable GetFormations(bool? asc, int? numPage, int? parPAge, long? idAgence, int? statutFormation, string texte, string tri); - Task> GetFormationsAsync(bool? asc, int? numPage, int? parPAge, long? idAgence, int? statutFormation, string texte, string tri); - IEnumerable GetFormationAnnulees(bool? asc, int? numPage, int? parPAge, long? idAgence, string texte, string tri); - Task> GetFormationAnnuleesAsync(bool? asc, int? numPage, int? parPAge, long? idAgence, string texte, string tri); - IEnumerable GetFormationRealisees(bool? asc, int? numPage, int? parPAge, long? idAgence, string texte, string tri); - Task> GetFormationRealiseesAsync(bool? asc, int? numPage, int? parPAge, long? idAgence, string texte, string tri); - IEnumerable GetProchainesFormation(bool? asc, int? numPage, int? parPAge, long? idAgence, string texte, string tri); - Task> GetProchainesFormationAsync(bool? asc, int? numPage, int? parPAge, long? idAgence, string texte, string tri); - IEnumerable GetModesFormation(); + Task GetFormationByIdAsync(long idFormation); + Task> GetFormationsAsync(long? idAgence, List idStatuts, bool? asc, int? numPage, int? parPage, string texte, string tri, DateTime? dateDebut, DateTime? dateFin); + Task GetFormationsCountAsync(long? idAgence, List idStatuts, int? numPage, int? parPage, string texte, DateTime? dateDebut, DateTime? dateFin); Task> GetModesFormationAsync(); - IEnumerable GetOriginesFormation(); Task> GetOriginesFormationAsync(); - IEnumerable GetStatutsFormation(); Task> GetStatutsFormationAsync(); - IEnumerable GetTypesFormation(); Task> GetTypesFormationAsync(); - FormationDTO AddFormation(FormationDTO formationDTO); Task AddFormationAsync(FormationDTO formationDTO); - FormationDTO UpdateFormation(long? idFormation, FormationDTO formationDTO); - Task UpdateFormationAsync(long? idFormation, FormationDTO formationDTO); - FormationDTO DeleteFormationById(long? idFormation); - Task DeleteFormationByIdAsync(long? idFormation); + Task UpdateFormationAsync(long idFormation, FormationDTO formationDTO); + Task DeleteFormationByIdAsync(long idFormation); } }