|
|
|
@ -101,6 +101,10 @@ namespace IO.Swagger.Controllers |
|
|
|
|
|
|
|
|
|
FormationDTO formation = await formationService.DeleteFormationByIdAsync(idFormation); |
|
|
|
|
} |
|
|
|
|
catch (FormationIncompatibleIdException) |
|
|
|
|
{ |
|
|
|
|
logger.LogError("Impossible de supprimer la formation car l'id de la formation passé en paramètre est null."); |
|
|
|
|
} |
|
|
|
|
catch (FormationNotFoundException) |
|
|
|
|
{ |
|
|
|
|
logger.LogError("Impossible de supprimer la formation d'id {idFormation} car elle n'existe pas.", idFormation); |
|
|
|
@ -272,7 +276,7 @@ namespace IO.Swagger.Controllers |
|
|
|
|
|
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
formations = await formationService.GetFormationRealiseeAsync(asc, numPage, parPAge, idAgence, texte, tri); |
|
|
|
|
formations = await formationService.GetFormationRealiseesAsync(asc, numPage, parPAge, idAgence, texte, tri); |
|
|
|
|
} |
|
|
|
|
catch (ArgumentNullException) |
|
|
|
|
{ |
|
|
|
|