I have been attempting to incorporate a function within an API call. Despite implementing the following logic thus far, it is not functioning as intended.
code
changeStatus(id) {
this.http.post('https://localhost:44300/api/apis/ChangeStatus/' + id, "")
.subscribe(
data => {
this._data = data.json(),
this.getAllUser();
},
err => this.logError(err)
);
}
}