diff --git a/Subiton/src/app/_services/user.service.ts b/Subiton/src/app/_services/user.service.ts index 3462166..a962c12 100644 --- a/Subiton/src/app/_services/user.service.ts +++ b/Subiton/src/app/_services/user.service.ts @@ -29,6 +29,6 @@ constructor(private http: HttpClient) { } return this.http.get(this.baseUrl + 'Users/' + id ); } updateUser(id: number, user: User) { - this.http.put(this.baseUrl + 'Users/' + id , user); + return this.http.put(this.baseUrl + 'Users/' + id , user); } }