The parameter dictionary contains a null input

0

I have a problem that is as follows, I am consuming a service where it receives a parameter as input, in the

asked by anonymous 27.09.2017 / 14:41

1 answer

0

Pass the id value without the quotation marks:

data: {"id": 1},

and note its function:

[HttpPost]
public string PostLinear(int id){
    
27.09.2017 / 15:50