|
|
|
@ -17,6 +17,12 @@ export class ServiceFormation { |
|
|
|
|
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> { |
|
|
|
|
return this.http.post<FormationModel>(urlsFormation.newFormation, formation); |
|
|
|
|
} |
|
|
|
|