|
|
|
@ -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) |
|
|
|
|
{ |
|
|
|
@ -622,7 +626,7 @@ namespace IO.Swagger.Controllers |
|
|
|
|
logger.LogInformation("Mise à jour de la formation d'id {idFormation}.", idFormation); |
|
|
|
|
|
|
|
|
|
FormationDTO formation = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
formation = await formationService.UpdateFormationAsync(idFormation, body); |
|
|
|
|