|
|
|
@ -102,7 +102,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation) |
|
|
|
|
.Where(formation => formation.Statut.Id == statutFormation && formation.IdAgence == idAgence); |
|
|
|
|
.Where(formation => formation.Statut.Id == statutFormation && formation.IdAgence == idAgence).Skip(skip).Take(take); |
|
|
|
|
} |
|
|
|
|
else if (statutFormation != null && idAgence == null) |
|
|
|
|
{ |
|
|
|
@ -111,7 +111,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation) |
|
|
|
|
.Where(formation => formation.Statut.Id == statutFormation); |
|
|
|
|
.Where(formation => formation.Statut.Id == statutFormation).Skip(skip).Take(take); |
|
|
|
|
} |
|
|
|
|
else if (idAgence != null) |
|
|
|
|
{ |
|
|
|
@ -119,14 +119,14 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
formations = epContext.Formation.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -168,7 +168,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation) |
|
|
|
|
.Where(formation => formation.Statut.Id == statutFormation && formation.IdAgence == idAgence).ToListAsync(); |
|
|
|
|
.Where(formation => formation.Statut.Id == statutFormation && formation.IdAgence == idAgence).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
} |
|
|
|
|
else if (statutFormation != null && idAgence == null) |
|
|
|
|
{ |
|
|
|
@ -177,7 +177,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation) |
|
|
|
|
.Where(formation => formation.Statut.Id == statutFormation).ToListAsync(); |
|
|
|
|
.Where(formation => formation.Statut.Id == statutFormation).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
} |
|
|
|
|
else if (idAgence != null) |
|
|
|
|
{ |
|
|
|
@ -186,7 +186,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation).Where(formation => formation.IdAgence == idAgence).ToListAsync(); |
|
|
|
|
.Include(formation => formation.TypeFormation).Where(formation => formation.IdAgence == idAgence).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
else |
|
|
|
@ -195,7 +195,7 @@ namespace EPAServeur.Services |
|
|
|
|
formations = await epContext.Formation.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation).ToListAsync(); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -236,13 +236,13 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take); |
|
|
|
|
else |
|
|
|
|
formations = epContext.Formation.Where(formation => formation.Statut.Id == 4) |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take); |
|
|
|
|
|
|
|
|
|
if (formations == null) |
|
|
|
|
return null; |
|
|
|
@ -280,13 +280,13 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation).ToListAsync(); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
else |
|
|
|
|
formations = await epContext.Formation.Where(formation => formation.Statut.Id == 4) |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation).ToListAsync(); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
|
|
|
|
|
if (formations == null) |
|
|
|
|
return null; |
|
|
|
@ -326,7 +326,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
else |
|
|
|
@ -336,7 +336,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -379,7 +379,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation).ToListAsync(); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
else |
|
|
|
@ -389,7 +389,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation).ToListAsync(); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -430,7 +430,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
else |
|
|
|
@ -439,7 +439,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (formations == null) |
|
|
|
@ -479,7 +479,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation).ToListAsync(); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -489,7 +489,7 @@ namespace EPAServeur.Services |
|
|
|
|
.Include(formation => formation.Statut) |
|
|
|
|
.Include(formation => formation.ModeFormation) |
|
|
|
|
.Include(formation => formation.Origine) |
|
|
|
|
.Include(formation => formation.TypeFormation).ToListAsync(); |
|
|
|
|
.Include(formation => formation.TypeFormation).Skip(skip).Take(take).ToListAsync(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (formations == null) |
|
|
|
|