|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|