app.component.ts
Step 1: Json Data
this.objsearch=[
{ "Key": "FirstName", "value": this.firstName },
{ "Key": "MiddleName", "value": this.middleName },
{ "Key": "fatherName ", "value": this.fatherName },
]
this.ServiceObject.saveData(JSON.stringify(this.objsearch))
.subscribe(response => (this._param) = response);
}
Service.ts class
public _saveDataURL= 'http://localhost:53915/api/ComapnyAndProduct/DeleteItem';
saveData(objSearch: any)
{
return this._http.post(this._saveDataURL,objSearch)
.map((response: Response) => response.json());
}
Web api
[HttpPost]
public IHttpActionResult DeleteItem([FromUri]Mregistration objSearch)
{
return ok();
}

Bryian TanRank #396 · 6.3K reputationPosted Jul 13, 2018, 8:12 PM EDT
Navjot AngraRank #2,900 · 496 reputationPosted Jul 15, 2018, 7:13 PM EDT