|
|
|
@ -31,10 +31,10 @@ export class AgenceService { |
|
|
|
|
return this.http.get<Agence>(this.agencesUrl+"/"+id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
updateAgence(agence : Agence):Observable<any>{ |
|
|
|
|
updateAgence(agence : Agence):Observable<Agence>{ |
|
|
|
|
let body = JSON.stringify(agence); |
|
|
|
|
this.log(`update agence ${agence.id}`) |
|
|
|
|
return this.http.put(this.agencesUrl + "/" + agence.id, body, this.httpOptions); |
|
|
|
|
return this.http.put<Agence>(this.agencesUrl + "/" + agence.id, body, this.httpOptions); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
deleteAgence(agence: Agence) { |
|
|
|
|