Im testing my post via Postman and I get data,when I post the following url(i add the ip hardcoded):
http://localhost:59628/api/AcessInfo/?id=192.168.10.801
but in angular side when I try the same thing,i get id=null in .netcore
url: http://localhost:59628/api/AcessInfo/
this.http.post(this.url,{params:{id:x} });
my controller:
public IActionResult turbineDvic(string id)
{
var x = _acess.Devices(id);
return Ok(x);
}
I tried :
([FromBody]string id)
but that gives my error 405! which I never seen, any idea?seems i ca not add the parameter to my url