|
|
|
@ -29,10 +29,6 @@ export class AgenceService { |
|
|
|
|
return this.http.put<Agence>(this.agencesUrl + "/" + agence.id, body, this.httpOptions); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
deleteAgence(agence: Agence) { |
|
|
|
|
return this.http.delete(this.agencesUrl + "/" + agence.id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
addAgence(agence: Agence): Observable<Agence> { |
|
|
|
|
let body = JSON.stringify(agence); |
|
|
|
|
return this.http.post<Agence>(this.agencesUrl, body, this.httpOptions); |
|
|
|
|