From 10a306c88875322382467395310314922981b31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Thu, 25 Feb 2021 11:21:19 +0100 Subject: [PATCH] =?UTF-8?q?Prise=20en=20compte=20des=20EP=20cr=C3=A9=C3=A9?= =?UTF-8?q?=20lors=20de=20la=20r=C3=A9cup=C3=A9ration=20d'un=20EP=20en=20c?= =?UTF-8?q?ours?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EPAServeur/Services/EpInformationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EPAServeur/Services/EpInformationService.cs b/EPAServeur/Services/EpInformationService.cs index b2ea22c..49fb819 100644 --- a/EPAServeur/Services/EpInformationService.cs +++ b/EPAServeur/Services/EpInformationService.cs @@ -101,7 +101,7 @@ namespace EPAServeur.Services public async Task GetProchainEPCollaborateur(Guid? idCollaborateur) { - Ep ep = context.Ep.Where(ep => ep.IdCollaborateur.Equals(idCollaborateur)).OrderBy(ep => ep.DateDisponibilite).AsEnumerable().Where(ep => EstEpEnCours(ep.Statut)).FirstOrDefault(); + Ep ep = context.Ep.Where(ep => ep.IdCollaborateur.Equals(idCollaborateur)).OrderBy(ep => ep.DateDisponibilite).AsEnumerable().Where(ep => ep.Statut.Equals(StatutEp.Cree) || EstEpEnCours(ep.Statut)).FirstOrDefault(); if (ep == null) return null; IEnumerable collaborateurDTOs = await collaborateurService.GetCollaborateurDTOsAsync(new List() { ep.IdReferent, ep.IdCollaborateur });