|
|
@ -206,10 +206,10 @@ namespace IO.Swagger.Controllers |
|
|
|
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
|
|
|
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
|
|
|
// return StatusCode(403, default(ErreurDTO)); |
|
|
|
// return StatusCode(403, default(ErreurDTO)); |
|
|
|
logger.LogInformation("Récupération de la liste des collaborateurs du référent {idReferent}",idReferent); |
|
|
|
logger.LogInformation("Récupération de la liste des collaborateurs du référent {idReferent}",idReferent); |
|
|
|
IEnumerable<CollaborateurDTO> collaborateurs = await collaborateurService.GetCollaborateursByReferentAsync(idReferent, asc, numPage, parPAge, texte, tri); |
|
|
|
IEnumerable<CollaborateurDTO> collaborateurs = null; |
|
|
|
try |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
|
collaborateurs = collaborateurService.GetCollaborateursByReferent(idReferent, asc, numPage, parPAge, texte, tri); |
|
|
|
collaborateurs = await collaborateurService.GetCollaborateursByReferentAsync(idReferent, asc, numPage, parPAge, texte, tri); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (ApiException) |
|
|
|
catch (ApiException) |
|
|
|
{ |
|
|
|
{ |
|
|
|