Ajout de la fonction pour récupérer la liste des formations d'un collaborateur

master
Yanaël GRETTE 5 years ago
parent 06ae254e3c
commit 7ebba40014
  1. 6
      src/app/service/service-formation.ts

@ -17,6 +17,12 @@ export class ServiceFormation {
return this.http.get<FormationModel[]>(urlsFormation.urlFormation); return this.http.get<FormationModel[]>(urlsFormation.urlFormation);
} }
listeFormationsCollaborateur(id) : Observable<FormationModel[]> {
let params = { idCollab : id };
return this.http.get<FormationModel[]>(urlsFormation.urlFormation, { params });
}
nouvelleFormation(formation) : Observable<FormationModel> { nouvelleFormation(formation) : Observable<FormationModel> {
return this.http.post<FormationModel>(urlsFormation.newFormation, formation); return this.http.post<FormationModel>(urlsFormation.newFormation, formation);
} }

Loading…
Cancel
Save